Correct.
> In 2.5 queue_depth is an unsigned short and a slab
> allocator called "scsi_cmd_cache" is used as required.
> There is some throttle logic (or at least it has been
> talked about) to make sure one scsi_cmnd instance per
> scsi device will always be available.
Not throttle logic, we simply have a struct list_head that we stick one
command (per host) onto and should it ever need to be used, then in
scsi_done() when we would normally free a command we are done with we
instead stick it back on that list head. That way, memory pressure
can't kill us, just slow us down.
> I think that comment (probably by Doug Ledford) refers
> to the 2.5 series before the slab allocator was
> introduced.
Yep.
-- Doug Ledford <dledford@redhat.com> 919-754-3700 x44233 Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/