From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Shinichiro Kawasaki Subject: Re: [PATCH v3 09/38] zbd: don't unlock zone mutex after verify replay Date: Fri, 22 Jan 2021 04:13:40 +0000 Message-ID: <20210122041339.a72fpozvhmn7oha3@shindev.dhcp.fujisawa.hgst.com> References: <20210106215739.264524-1-dmitry.fomichev@wdc.com> <20210106215739.264524-10-dmitry.fomichev@wdc.com> In-Reply-To: <20210106215739.264524-10-dmitry.fomichev@wdc.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 To: Dmitry Fomichev Cc: Jens Axboe , "fio@vger.kernel.org" , Aravind Ramesh , Bart Van Assche , Naohiro Aota , Niklas Cassel , Damien Le Moal List-ID: On Jan 07, 2021 / 06:57, Dmitry Fomichev wrote: > zbd_adjust_block() always returns with the zone locked if the i/o is > accepted. The corresponding unlock happens in zbd_put_io(). The > function description says - >=20 > * Locking strategy: returns with z->mutex locked if and only if z refers > * to a sequential zone and if io_u_accept is returned. z is the zone tha= t > * corresponds to io_u->offset at the end of this function. >=20 > Remove the recently added unlock after zbd_replay_write_order() call. > Add a Coverity annotation to mark the absence of unlock as intentional. >=20 > Fixes: b2726d53bb5d ("zbd: Add a missing pthread_mutex_unlock() call") > Signed-off-by: Dmitry Fomichev Looks good to me. Reviewed-by: Shin'ichiro Kawasaki --=20 Best Regards, Shin'ichiro Kawasaki=