Re: [PATCH] struct io panic on raid1 - Re: block: unify flags for struct bio and struct request will kernel panic

From: Christoph Hellwig
Date: Wed Jul 07 2010 - 19:18:26 EST


On Thu, Jul 08, 2010 at 07:05:39AM +0800, Takeo Tung wrote:
> Dear Christoph,
>
> I was check the patch again. I found the panic status haapen on Soft RAID
> 1. I review it. found some define using bool, so some like ( x & REQ_SYNC)
> only 0 or 1.
> so if bi_rw = rw | sync will bi_rw = rw | 0 or rw | 1. not rw | ( 1 <<
> __REQ_SYNC).
>
> So I write a patch is fix it. seems normal now. could you review the patch
> or any comment?

The patch looks correct to me, although your mailer mangled the
whitespace badly. If Neil wants to keep the flag as bool we could
also add a !! around the bit flag checks.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/