On Fri, May 06, 2016 at 08:20:24PM -0400, Waiman Long wrote:
Currently, it is not possible to determine for sure if a readerOh, yes please. This will enable us to get rid of the remaining
owns a rwsem by looking at the content of the rwsem data structure.
This patch adds a new state RWSEM_READER_OWNED to the owner field
to indicate that readers currently own the lock.
mrlock rwsem abstraction we've carried since the days of Irix in
XFS. The only reason the abstraction still exists is that we track
write locks for the purposes of checking for correct inode locking
contexts via ASSERT(xfs_isilocked()) calls....