zbd: Restore zbd_check_swd()
authorBart Van Assche <bvanassche@acm.org>
Fri, 28 Sep 2018 21:51:32 +0000 (14:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Sep 2018 21:16:24 +0000 (15:16 -0600)
commit615555bbac860c9af51a6774d70a59312db93e2b
tree66f0127a3fc794a9499ea54e5dad935ba5d40620
parent72176dc7163b12002b1d704bfdea5b19690ff8a0
zbd: Restore zbd_check_swd()

A recent patch removed the check_swd() function. Restore it since this function
is useful when debugging fio. Rename the function into zbd_check_swd(). Insert
the calls to these function where no locks are held to avoid triggering a
deadlock. See also commit d60be7d51cbb ("zbd: Remove unused function and
variable").

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c