diff options
| author | Ming Lei <[email protected]> | 2020-04-23 10:07:13 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-04-24 18:21:15 -0400 |
| commit | f983622ae60516d634008c7b1ff9ffff4f7bb8ae (patch) | |
| tree | 11f5a5aa347e1ebec3429d67f33665c3b4283ced /tools/perf/scripts/python | |
| parent | 3fa65812c20297bf71724c6138c0aed8531012f9 (diff) | |
scsi: core: Avoid calling synchronize_rcu() for each device in scsi_host_block()
scsi_host_block() calls scsi_internal_device_block() for each scsi_device and
scsi_internal_device_block() calls blk_mq_quiesce_queue() for each LUN.
Since synchronize_rcu() is called from blk_mq_quiesce_queue(), this can cause
substantial slowdowns on systems with many LUNs.
Use scsi_internal_device_block_nowait() to implement scsi_host_block() so it
is sufficient to run synchronize_rcu() once. This is safe since SCSI does not
set the BLK_MQ_F_BLOCKING flag.
[mkp: commit desc and comment tweaks]
Link: https://lore.kernel.org/r/[email protected]
Cc: Steffen Maier <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Dexuan Cui <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Reviewed-by: Christoph Hellwig <[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')
0 files changed, 0 insertions, 0 deletions