Re: IDE crash...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jens Axboe <jens.axboe@...>
Cc: John Stoffel <john@...>, David Miller <davem@...>, <fujita.tomonori@...>, <linux-kernel@...>
Date: Wednesday, October 24, 2007 - 12:27 pm

>>>>> "Jens" == Jens Axboe <jens.axboe@oracle.com> writes:

Jens> On Tue, Oct 23 2007, John Stoffel wrote:
Jens> On Tue, Oct 23 2007, David Miller wrote:
Jens> Great, thanks for testing that as well. Thinking a bit more
Jens> about it, I think the forced clear should stay in
Jens> blk_rq_map_sg() since we don't want to advertise it to
Jens> drivers. So I'll just open-code it in there.

Jens> We have to rely on the caller passing in an sgtable that is big enough
Jens> to map the request, we have always made that assumption. Anything else
Jens> would be a bug, of course. Now, catching that bug would indeed be nice.
Jens> Any suggestions?

Poor mans slab poisoning maybe?  As Alan Cox was saying about keeping
it simple with a NULL entry on the end of the SG list, having an easy
way to not fall of the end seems key. 

But from reading and re-reading the thread and some of the code, it
looks like this list is really allocated, then the driver can just
re-use the list (or a subset) as much as it likes without clearing and
then reallocating.

So if you've got a chain of 127 items, does it make sense when you
only use 16 of them to poison the next three or four in the chain to
really make sure you don't fall off the end?

Sorry I don't have a concrete example, my C-foo is quite weak and I
haven't had the time to really dive into this code.  So take my
comments as just an interested but ignorant bystander butting in.  :]

John

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
IDE crash..., David Miller, (Tue Oct 23, 2:50 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 3:02 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 3:09 am)
Re: IDE crash..., FUJITA Tomonori, (Tue Oct 23, 3:14 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 3:23 am)
Re: IDE crash..., David Miller, (Tue Oct 23, 3:18 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 3:23 am)
Re: IDE crash..., David Miller, (Tue Oct 23, 3:43 am)
Re: IDE crash..., FUJITA Tomonori, (Tue Oct 23, 6:52 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 6:57 am)
Re: IDE crash..., David Miller, (Tue Oct 23, 5:18 pm)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 5:44 pm)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 6:58 am)
Re: IDE crash..., FUJITA Tomonori, (Tue Oct 23, 7:10 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 7:43 am)
Re: IDE crash..., Jens Axboe, (Tue Oct 23, 3:45 am)
Re: IDE crash..., John Stoffel, (Tue Oct 23, 11:10 am)
Re: IDE crash..., Jens Axboe, (Wed Oct 24, 2:49 am)
Re: IDE crash..., John Stoffel, (Wed Oct 24, 12:27 pm)
Re: IDE crash..., Jens Axboe, (Wed Oct 24, 2:10 pm)