]> git.baikalelectronics.ru Git - kernel.git/commit
block/rnbd-srv: Protect dev session sysfs removal
authorMd Haris Iqbal <haris.iqbal@cloud.ionos.com>
Thu, 10 Dec 2020 10:18:22 +0000 (11:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Dec 2020 21:55:50 +0000 (14:55 -0700)
commit8e510260329e949e631fd1497da67d825f391576
treef3c2ce201f44310ad99ca76b7f89e2bc81ff7b5b
parentfe611a8146203274545eeb7d2e774890e36df41c
block/rnbd-srv: Protect dev session sysfs removal

Since the removal of the session sysfs can also be called from the
function destroy_sess, there is a need to protect the call from the
function rnbd_srv_sess_dev_force_close

Fixes: a578b63fae6a ("block/rnbd-srv: close a mapped device from server side.")
Signed-off-by: Md Haris Iqbal <haris.iqbal@cloud.ionos.com>
Reviewed-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-srv.c