]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: core: Fix backend plugging
authorMike Christie <michael.christie@oracle.com>
Sat, 27 Feb 2021 17:00:02 +0000 (11:00 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Mar 2021 22:37:02 +0000 (17:37 -0500)
commit4eecd00c014487064c82fdfb436ebe8c12a2a24c
treebe970c2bc90c9b7f68cc2c2217c2f5168bbdc68b
parent1e3c61fc9539016893cd654ceb2a056f7ebc8715
scsi: target: core: Fix backend plugging

target_core_iblock is plugging and unplugging on every command and this is
causing perf issues for drivers that prefer batched cmds. With recent
patches we can now take multiple cmds from a fabric driver queue and then
pass them down the backend drivers in a batch. This patch adds this support
by adding 2 callouts to the backend for plugging and unplugging the
device. Subsequent commits will add support for iblock and tcmu device
plugging.

Link: https://lore.kernel.org/r/20210227170006.5077-22-michael.christie@oracle.com
Reviewed-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_transport.c
include/target/target_core_backend.h
include/target/target_core_base.h