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

From: James Bottomley
Date: Mon Apr 28 2008 - 08:13:25 EST


On Mon, 2008-04-28 at 10:23 +0300, Boaz Harrosh wrote:
> If we are already on the subject. It looks like we always have at most 1 command in the
> free list, so why the free list at all? or am I reading the code wrong?

Because list handlers are well understood mechanisms within the kernel.
Also because in low memory situations, one command per host is
sufficient to guarantee forward progress, but it's not going to be very
efficient. Embedded and other low memory environments can increase the
size of the free list to improve their I/O path.

James


--
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/