]> git.baikalelectronics.ru Git - kernel.git/commit
target: pass a block_device to target_configure_unmap_from_queue
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:33 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commit76bbbc544f451716fd435e1d5eed30593edfee93
tree722bac3bc07a22d83406554e9917feef3b374eeb
parentebc21b3045b34e3325a8c1ba27bca9c950ad546f
target: pass a block_device to target_configure_unmap_from_queue

The SCSI target drivers is a consumer of the block layer and shoul
d generally work on struct block_device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/target/target_core_device.c
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
include/target/target_core_backend.h