OSDN Git Service

block/rnbd-clt: send_msg_close if any error occurs after send_msg_open
authorGioh Kim <gi-oh.kim@cloud.ionos.com>
Tue, 13 Oct 2020 10:30:50 +0000 (12:30 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Oct 2020 21:05:05 +0000 (15:05 -0600)
commit47be77c2f80412f903134a57caea25fa3fc5f578
tree05aecb6004cf91ccf76be2ef3e56aef1b915057c
parent050b654b2a70a978873bd5885a615c6a47c6205a
block/rnbd-clt: send_msg_close if any error occurs after send_msg_open

After send_msg_open is done, send_msg_close should be done
if any error occurs and it is necessary to recover
what has been done.

Signed-off-by: Gioh Kim <gi-oh.kim@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-clt.c