zbd: relocate Coverity annotation
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Sat, 30 Jan 2021 03:35:24 +0000 (12:35 +0900)
committerJens Axboe <axboe@kernel.dk>
Sat, 30 Jan 2021 05:06:49 +0000 (22:06 -0700)
commit2ef3c1b02473a14bf7b8b52e28d0cdded9c5cc9a
tree5c252b4d6a02e2357c2f63d1155658402a7db0d9
parent1e3d6e033edb32263806ad20f6644c70350b61eb
zbd: relocate Coverity annotation

The Coverity annotation added earlier to suppress a false positive
about missing unlock in zbd_adjust_block() didn't work because it
was placed not before the return statement, but earlier in the code.

Move the annotation to the right place to avoid the warning.

Reported-by: Bart Van Assche <bvanassche@acm.org>
Fixes: 8e4b2e55512f("zbd: don't unlock zone mutex after verify replay")
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c