summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_sysfs.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-10-15 02:24:17 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2022-10-18 05:17:09 +0200
commit195fae206ef20a29b09f281b6db8ea30fafaa908 (patch)
treebfadea4d6e1c31a74bba633cf9f355985d48c156 /drivers/scsi/scsi_sysfs.c
parentscsi: ufs: Simplify ufshcd_set_dev_pwr_mode() (diff)
downloadlinux-195fae206ef20a29b09f281b6db8ea30fafaa908.tar.xz
linux-195fae206ef20a29b09f281b6db8ea30fafaa908.zip
scsi: core: Remove the put_device() call from scsi_device_get()
scsi_device_get() may be called from atomic context, e.g. by shost_for_each_device(). A later commit will allow put_device() to sleep for SCSI devices. Hence remove the put_device() call from scsi_device_get(). According to Rusty Russell's "Module Refcount and Stuff mini-FAQ", calling module_put() from atomic context is allowed since considerable time. See also https://lkml.org/lkml/2002/11/18/330. Cc: Christoph Hellwig <hch@lst.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Mike Christie <michael.christie@oracle.com> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20221015002418.30955-8-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
0 files changed, 0 insertions, 0 deletions