]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: add missing config put
authorMike Christie <mchristi@redhat.com>
Tue, 13 Aug 2019 16:39:51 +0000 (11:39 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Aug 2019 18:44:04 +0000 (12:44 -0600)
commit0d0a6b60600112b5152960b5c7ecccb8ffe03813
tree9e96fabbac3a23b55eed3d3c3b775eca86c6acb2
parent216a3187caffa22007958381ef8a0094e44adb3c
nbd: add missing config put

Fix bug added with the patch:

commit 2b7273d6199d05eda0a3b4f396412fdc80b1c058
Author: Josef Bacik <josef@toxicpanda.com>
Date:   Mon Jul 16 12:11:35 2018 -0400

    nbd: handle unexpected replies better

where if the timeout handler runs when the completion path is and we fail
to grab the mutex in the timeout handler we will leave a config reference
and cannot free the config later.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c