diff options
author | Christoph Hellwig <[email protected]> | 2024-05-31 09:48:09 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-06-14 10:19:44 -0600 |
commit | 73e3715ed14844067c5c598e72777641004a7f60 (patch) | |
tree | 1dfc2856f39e2b782bf860b1f000bd321d12fdfb /tools/perf/scripts/python/syscall-counts.py | |
parent | 1652b0bafeaa8281ca9a805d81e13d7647bd2f44 (diff) |
block: add special APIs for run-time disabling of discard and friends
A few drivers optimistically try to support discard, write zeroes and
secure erase and disable the features from the I/O completion handler
if the hardware can't support them. This disable can't be done using
the atomic queue limits API because the I/O completion handlers can't
take sleeping locks or freeze the queue. Keep the existing clearing
of the relevant field to zero, but replace the old blk_queue_max_*
APIs with new disable APIs that force the value to 0.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Nitesh Shetty <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions