[SCSI] add support for per-host cmd pools
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Feb 2014 22:21:01 +0000 (14:21 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 27 Mar 2014 15:26:33 +0000 (08:26 -0700)
commit89d9a567952baec13e26ada3e438f1b642d66b6e
treef6217370ee634dc3fa08228a0aa1073265aa13b7
parent7c283341225d0ebeb7480a9e6560f599dcd0f417
[SCSI] add support for per-host cmd pools

This allows drivers to specify the size of their per-command private
data in the host template and then get extra memory allocated for
each command instead of needing another allocation in ->queuecommand.

With the current SCSI code that already does multiple allocations for
each command this probably doesn't make a big performance impact, but
it allows to clean up the drivers, and prepare them for using the
blk-mq infrastructure where the common allocation will make a difference.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi.c
include/scsi/scsi_host.h