corruption with mtdblock
David Woodhouse
dwmw2 at infradead.org
Wed Nov 8 16:50:28 EST 2000
On Tue, 7 Nov 2000, Nicolas Pitre wrote:
> > Ah. If something is mucking with the request at the head of the queue while
> > (q->head_active && !q->plugged) then I think that has to be a kernel bug.
>
> OK! Forget all this now. It wasn't a kernel bug, of course.
>
> The lesson is: never use req->nr_sectors in a request function unless
> you're playing special tricks with different segments and you know what
> you're doing. In the common case req->current_nr_sectors should be used.
>
> It works beautifully now.
I think we still need to disable plugging to protect the head of the
list. It's a small race but it's non-zero.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list