linux/drivers/scsi/device_handler
Bart Van Assche 379e2554e3 scsi: alua: Move a scsi_device_put() call out of alua_rtpg_select_sdev()
Move a scsi_device_put() call from alua_rtpg_select_sdev() to its
callers. Fixes the following smatch complaint:

drivers/scsi/device_handler/scsi_dh_alua.c:853 alua_rtpg_select_sdev() warn: sleeping in atomic context

alua_rtpg_work() <- disables preempt
-> alua_rtpg_select_sdev()
   -> scsi_device_put()

Cc: Hannes Reinecke <hare@suse.de>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20221031224728.2607760-3-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-11-08 03:34:39 +00:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
scsi_dh_alua.c scsi: alua: Move a scsi_device_put() call out of alua_rtpg_select_sdev() 2022-11-08 03:34:39 +00:00
scsi_dh_emc.c scsi/device_handlers: Use the new blk_opf_t type 2022-07-14 12:14:32 -06:00
scsi_dh_hp_sw.c scsi/device_handlers: Use the new blk_opf_t type 2022-07-14 12:14:32 -06:00
scsi_dh_rdac.c scsi/device_handlers: Use the new blk_opf_t type 2022-07-14 12:14:32 -06:00