Re: [PATCH v3 04/38] zbd: introduce zone_unlock()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 07, 2021 / 06:57, Dmitry Fomichev wrote:
> ZBD code already defines a helper function to lock a device zone,
> zone_lock(). There is no zone_unlock() function though.
> 
> Wrap zone mutex unlock to zone_unlock() helper along with an assert
> to make sure that the unlock is successful, i.e. that the function
> is being called with the pointer to a locked zone.
> 
> Suggested-by: Niklas Cassel <niklas.cassel@xxxxxxx>
> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx>

Looks good to me.

Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>

-- 
Best Regards,
Shin'ichiro Kawasaki



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux