Files
linux/drivers/block
Xiubo Li 2ef6f4bd60 nbd: make the config put is called before the notifying the waiter
[ Upstream commit 87aac3a80a ]

There has one race case for ceph's rbd-nbd tool. When do mapping
it may fail with EBUSY from ioctl(nbd, NBD_DO_IT), but actually
the nbd device has already unmaped.

It dues to if just after the wake_up(), the recv_work() is scheduled
out and defers calling the nbd_config_put(), though the map process
has exited the "nbd->recv_task" is not cleared.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-05 11:08:45 +01:00
..
2020-02-24 08:34:53 +01:00
2018-06-12 16:19:22 -07:00
2017-02-20 12:16:15 +01:00
2019-12-01 09:16:20 +01:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00
2018-11-13 11:08:20 -08:00
2018-06-12 16:19:22 -07:00