summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorYang Erkun <yangerkun@huawei.com>2026-08-05 20:29:24 +0800
committerJens Axboe <axboe@kernel.dk>2026-08-15 20:01:19 -0600
commit04d8fb23e520419a283dd53c1d9cdfb7c5b1705e (patch)
tree5d1667575d035e860a451919eb1bee04ae0b2e91 /tools/perf/scripts/python/gecko.py
parentfe247030f1ce74e6bb917e219fe152270613073d (diff)
nbd: disallow NBD_SET_SOCK on an active device
We cannot add a socket to an already running nbd device, the reconfigure for netlink can only active an inactive socket. But for ioctl path, we can call NBD_SET_SOCK after NBD_DO_IT, reject this using nbd->pid which has been setted when NBD_DO_IT. Besides, it is the root cause for commit b98e762e3d71 ("nbd: freeze the queue while we're adding connections"). Reviewed-by: Yu Kuai <yukuai@fygo.io> Signed-off-by: Yang Erkun <yangerkun@huawei.com> Link: https://patch.msgid.link/20260805122930.57647-3-yangerkun@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions