summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorBaek Kyu, Kim <pocj8ur4in@gmail.com>2026-10-26 01:11:33 +0900
committerJens Axboe <axboe@kernel.dk>2026-11-03 07:06:24 -0700
commit5a4236bf22622c291a96c139bfe54117f4cf1af6 (patch)
tree277a01f5c531302db8c13050f46cf13943357dcc /tools/lib/python
parente67cb6ed40e7f45912b63d7d575f18dfd2ebc98a (diff)
null_blk: reset cache state before device setup
The CACHE flag belongs to nullb_device, which outlives each powered-on nullb instance. Power-off discards the runtime cache but leaves the flag set. If cache_size changes from 1 to 0 before the next power-on, the queue advertises write-through while new page writes still go into the cache tree. A completed write can then disappear at the next power-off. Clear CACHE before creating the new instance. The existing cache_size setup sets it again when the new instance needs a cache. Signed-off-by: Baek Kyu, Kim <pocj8ur4in@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20261025161133.59344-1-pocj8ur4in@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions