diff options
| author | Ming Lei <[email protected]> | 2019-04-12 11:30:32 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-04-15 22:11:22 -0400 |
| commit | 18c4f0a42b08ced680aa287a9cf3c94b6f9a752f (patch) | |
| tree | b87e6bea0551c833556a529c8b2eb0a8c72970ed /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1710ac17547ac8b5c44fbd74de41dee3fe26ee81 (diff) | |
scsi: core: don't hold device refcount in IO path
scsi_device's refcount is always grabbed in IO path.
Turns out it isn't necessary, because blk_queue_cleanup() will drain any
in-flight IOs, then cancel timeout/requeue work, and SCSI's requeue_work is
canceled too in __scsi_remove_device().
Also scsi_device won't go away until blk_cleanup_queue() is done.
So don't hold the refcount in IO path, especially the refcount isn't
required in IO path since blk_queue_enter() / blk_queue_exit() is
introduced in the legacy block layer.
Cc: Dongli Zhang <[email protected]>
Cc: James Smart <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: [email protected],
Cc: Martin K . Petersen <[email protected]>,
Cc: Christoph Hellwig <[email protected]>,
Cc: James E . J . Bottomley <[email protected]>,
Cc: jianchao wang <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions