diff options
author | Christoph Hellwig <hch@lst.de> | 2024-06-17 09:04:33 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-19 16:58:28 +0300 |
commit | a17ece76bcfe7b86327b19cae1652d7c62068a30 (patch) | |
tree | 414d1953e1aa50981ac5ad3c4df91e53c87af5d7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ae0d40ff49642651f969883ef9fc79d69c1632d7 (diff) | |
download | linux-a17ece76bcfe7b86327b19cae1652d7c62068a30.tar.xz |
loop: regularize upgrading the block size for direct I/O
The LOOP_CONFIGURE path automatically upgrades the block size to that
of the underlying file for O_DIRECT file descriptors, but the
LOOP_SET_BLOCK_SIZE path does not. Fix this by lifting the code to
pick the block size into common code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240617060532.127975-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions