From: Bart Van Assche Date: Sat, 30 May 2020 22:34:00 +0000 (-0700) Subject: zbd: Add a missing pthread_mutex_unlock() call X-Git-Tag: fio-3.24~32^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b2726d53bb5d7f74e25b6312c4a274fe5f196126;p=fio.git zbd: Add a missing pthread_mutex_unlock() call This patch fixes the following Coverity complaint: CID 292491 (#1 of 1): Missing unlock (LOCK) missing_unlock: Returning without unlocking zb->mutex. Fixes: bfbdd35b3e8f ("Add support for zoned block devices") Signed-off-by: Bart Van Assche --- diff --git a/zbd.c b/zbd.c index e8ecbb6f..905c0c2b 100644 --- a/zbd.c +++ b/zbd.c @@ -1546,6 +1546,7 @@ enum io_u_action zbd_adjust_block(struct thread_data *td, struct io_u *io_u) case DDIR_READ: if (td->runstate == TD_VERIFYING && td_write(td)) { zb = zbd_replay_write_order(td, io_u, zb); + pthread_mutex_unlock(&zb->mutex); goto accept; } /*