add support for per-host cmd pools
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 23:11:32 +0000 (17:11 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:26 +0000 (12:12 -0600)
commite66f634db1cdec739f79ee21fe1575b9713390ad
treeecde89d47021a0657cccbd313ca6f5af8672d5c7
parent5a7d5dd36384e900ef675c7be085ef7a212fce2a
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