]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: respect unchecked_isa_dma for blk-mq
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Jan 2017 05:28:41 +0000 (08:28 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commitbabe2a04ff86220d4e3d5e5b379c5d73ad8155f7
tree54f19534fd4654192c2d9b583eb85ae97f491aa2
parentf8110ad5802d2a3a381fa6b50c1cb15f730cbdc0
scsi: respect unchecked_isa_dma for blk-mq

Currently blk-mq always allocates the sense buffer using normal GFP_KERNEL
allocation.  Refactor the cmd pool code to split the cmd and sense allocation
and share the code to allocate the sense buffers as well as the sense buffer
slab caches between the legacy and blk-mq path.

Note that this switches to lazy allocation of the sense slab caches - the
slab caches (not the actual allocations) won't be destroy until the scsi
module is unloaded instead of keeping track of hosts using them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/hosts.c
drivers/scsi/scsi.c
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_priv.h