diff options
| author | Yang Erkun <yangerkun@huawei.com> | 2026-08-05 20:29:24 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-08-15 20:01:19 -0600 |
| commit | 04d8fb23e520419a283dd53c1d9cdfb7c5b1705e (patch) | |
| tree | 5d1667575d035e860a451919eb1bee04ae0b2e91 /tools/perf/scripts/python/stackcollapse.py | |
| parent | fe247030f1ce74e6bb917e219fe152270613073d (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
