diff options
author | Christoph Hellwig <[email protected]> | 2024-06-26 16:26:23 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-06-26 09:37:35 -0600 |
commit | 78887d004fb2bb03233122a048eaf46e850dabf4 (patch) | |
tree | 03ea0533cd646de1c2a5f08edde118e773d4f881 /lib/netdev-notifier-error-inject.c | |
parent | 573d5abf3df00c879fbd25774e4cf3e22c9cabd0 (diff) |
block: correctly report cache type
Check the features flag and the override flag using the
blk_queue_write_cache, helper otherwise we're going to always
report "write through".
Fixes: 1122c0c1cc71 ("block: move cache control settings out of queue->flags")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions