Re: [PATCH 3/5] xfs: Use rwsem_is_write_locked()

From: Christoph Hellwig
Date: Fri Sep 08 2023 - 05:10:12 EST


On Thu, Sep 07, 2023 at 06:47:03PM +0100, Matthew Wilcox (Oracle) wrote:
> This avoids using the mr_writer field to check the XFS ILOCK is held
> for write. It also improves the checking we do when lockdep is disabled.

Hmm, is there any reason to keep the lockdep-based version of
__xfs_rwsem_islocked around now at all?