diff options
| author | Damien Le Moal <[email protected]> | 2023-05-29 07:32:37 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-29 14:40:32 +0000 |
| commit | 47fe1c3064c6bc1bfa3c032ff78e603e5dd6e5bc (patch) | |
| tree | 534c6f4fdce87b6299da2cc471546f255caaa083 /net/nsh/nsh.c | |
| parent | Merge tag 'md-fixes-2023-05-24' of https://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-47fe1c3064c6bc1bfa3c032ff78e603e5dd6e5bc.tar.gz kernel-47fe1c3064c6bc1bfa3c032ff78e603e5dd6e5bc.zip | |
block: fix revalidate performance regression
The scsi driver function sd_read_block_characteristics() always calls
disk_set_zoned() to a disk zoned model correctly, in case the device
model changed. This is done even for regular disks to set the zoned
model to BLK_ZONED_NONE and free any zone related resources if the drive
previously was zoned.
This behavior significantly impact the time it takes to revalidate disks
on a large system as the call to disk_clear_zone_settings() done from
disk_set_zoned() for the BLK_ZONED_NONE case results in the device
request queued to be frozen, even if there are no zone resources to
free.
Avoid this overhead for non-zoned devices by not calling
disk_clear_zone_settings() in disk_set_zoned() if the device model
was already set to BLK_ZONED_NONE, which is always the case for regular
devices.
Reported by: Brian Bunker <[email protected]>
Fixes: 508aebb80527 ("block: introduce blk_queue_clear_zone_settings()")
Cc: [email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
