Re: [PATCH v2 -next] btrfs: use DEFINE_MUTEX() for mutex lock

From: David Sterba
Date: Mon Jan 04 2021 - 09:48:36 EST


On Thu, Dec 24, 2020 at 09:22:17PM +0800, Zheng Yongjun wrote:
> mutex lock can be initialized automatically with DEFINE_MUTEX()
> rather than explicitly calling mutex_init().

And is there some reason why it should be done that way?