summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorYang Erkun <yangerkun@huawei.com>2026-08-05 20:29:27 +0800
committerJens Axboe <axboe@kernel.dk>2026-08-15 20:01:20 -0600
commitdb285268df7948f6edbb7c8bb7cd02da3ceec6b4 (patch)
tree7d8e80444d730ddf88a6e7463786d4bc5262d31d /scripts/Makefile.thinlto
parent285908f554fe32d9ca7cb7c3a03a05144faeb461 (diff)
downloadlinux-stable-db285268df7948f6edbb7c8bb7cd02da3ceec6b4.tar.gz
linux-stable-db285268df7948f6edbb7c8bb7cd02da3ceec6b4.zip
nbd: skip queue freeze when setting size at device startup
Commit 242a49e5c878 ("nbd: freeze the queue for queue limits updates") added the freeze to keep in-flight commands from seeing torn queue_limits. But at startup the capacity is still 0 (invalidate_disk cleared it) and the write cache is off (the previous patch cleared it on disconnect, and nbd_set_size sets it back only after the commit), so submit_bio_noacct() rejects any bio before it reaches the driver and no I/O is in flight. Drop the freeze by checking capacity and write cache state in nbd_set_size. Reviewed-by: Yu Kuai <yukuai@fygo.io> Signed-off-by: Yang Erkun <yangerkun@huawei.com> Link: https://patch.msgid.link/20260805122930.57647-6-yangerkun@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions