diff options
author | Bart Van Assche <[email protected]> | 2014-02-20 14:20:56 -0800 |
---|---|---|
committer | James Bottomley <[email protected]> | 2014-03-15 10:19:25 -0700 |
commit | 613be1f626e602c6744101a003e8fc5c180e1af9 (patch) | |
tree | 4c78a6ed1be7b817fdb7a233dd1d346e786f2f31 /tools/perf/scripts/python | |
parent | 0479633686d370303e3430256ace4bd5f7f138dc (diff) |
[SCSI] remove a useless get/put_device pair in scsi_request_fn
SCSI devices may only be removed by calling scsi_remove_device().
That function must invoke blk_cleanup_queue() before the final put
of sdev->sdev_gendev. Since blk_cleanup_queue() waits for the
block queue to drain and then tears it down, scsi_request_fn cannot
be active anymore after blk_cleanup_queue() has returned and hence
the get_device()/put_device() pair in scsi_request_fn is unnecessary.
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Tejun Heo <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions