diff options
author | Bart Van Assche <[email protected]> | 2022-10-31 15:47:28 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-11-08 03:34:39 +0000 |
commit | 2e79cf37b15b1936f8630d9c5805d2c76bde213b (patch) | |
tree | 8336eb2b5dda744b1800de0aafa5dbdda78e5b93 /tools/perf/scripts/python/netdev-times.py | |
parent | 2e5a6c3baccd31476ed00c3fbc413b48ddd87993 (diff) |
scsi: bfa: Rework bfad_reset_sdev_bflags()
Since commit f93ed747e2c7 ("scsi: core: Release SCSI devices
synchronously") it is no longer allowed to call scsi_device_put() from
atomic context.
Rework bfad_reset_sdev_bflags() such that scsi_device_put() is no longer
called. This fixes the following smatch warning:
drivers/scsi/bfa/bfad_bsg.c:2551 bfad_iocmd_lunmask_reset_lunscan_mode() warn: sleeping in atomic context
bfad_iocmd_lunmask() <- disables preempt
-> bfad_iocmd_lunmask_reset_lunscan_mode()
-> scsi_device_put()
Cc: Anil Gurumurthy <[email protected]>
Cc: Sudarsana Kalluru <[email protected]>
Cc: Dan Carpenter <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions