login
Header Space

 
 

Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>, linux-scsi <linux-scsi@...>, linux-kernel <linux-kernel@...>
Date: Monday, April 28, 2008 - 2:25 pm

On Mon, 2008-04-28 at 09:05 -0700, Linus Torvalds wrote:

They are, but not until we begin the freelist allocation.  That way we
can keep the list head being NULL as the signal for the freelist not
being initialised.


No, no; for us it's guaranteed to be NULL ... they're allocated in the
host memory area with kzalloc. (and before kzalloc, we were using
kmalloc/memset because the host area has an API guarantee of being zero
initialised).


Because then I'd need another flag to know whether or not the free list
has actually been set up.  In theory, if we initialise the list,
list_empty() would do because when you're freeing you should always have
the reserve command on the free list ... but that would have prevented
us from seeing the bug Ingo reported recently (where we were freeing
with active commands), so I'm a bit reluctant to do that.

James


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

Messages in current thread:
[GIT PATCH] another tranche of SCSI updates for 2.6.26, James Bottomley, (Sun Apr 27, 2:14 pm)
Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26, James Bottomley, (Sun Apr 27, 10:51 pm)
Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26, Linus Torvalds, (Mon Apr 28, 12:05 pm)
Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26, James Bottomley, (Mon Apr 28, 2:25 pm)
Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26, James Bottomley, (Mon Apr 28, 8:13 am)
Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26, FUJITA Tomonori, (Mon Apr 28, 4:34 am)
Re: [GIT PATCH] another tranche of SCSI updates for 2.6.26, Kamalesh Babulal, (Mon Apr 28, 3:15 am)
speck-geostationary