diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-04-06 23:02:03 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-17 17:58:42 +0200 |
commit | 2516ab1543fdd1f9d08385d73cae51f668a9f3dc (patch) | |
tree | f65a2a8d4dfe50b1b44357c3d7aba216f1c9ec18 /certs | |
parent | nbd: multicast dead link notifications (diff) | |
download | linux-2516ab1543fdd1f9d08385d73cae51f668a9f3dc.tar.xz linux-2516ab1543fdd1f9d08385d73cae51f668a9f3dc.zip |
nbd: only clear the queue on device teardown
When running a disconnect torture test I noticed that sometimes we would
crash with a negative ref count on our queue. This was because we were
ending the same request twice. Turns out we were racing with
NBD_CLEAR_SOCK clearing the requests as well as the teardown of the
device clearing the requests. So instead make the ioctl only shutdown
the sockets and make it so that we only ever run nbd_clear_que from the
device teardown.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions