linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* remove the XFS iolock, V2
@ 2016-10-21 16:50 Christoph Hellwig
  2016-10-21 16:50 ` [PATCH 1/2] locking/lockdep: Provide a type check for lock_is_held Christoph Hellwig
  2016-10-21 16:50 ` [PATCH 2/2] xfs: remove i_iolock and use i_rwsem in the VFS inode instead Christoph Hellwig
  0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2016-10-21 16:50 UTC (permalink / raw)
  To: linux-xfs; +Cc: peterz

Hi all,

this series remove the per-inode iolock in XFS which has historically
been used to serialize I/O.  But now that the VFS i_mutex has been
replaced with a rw_semaphore called i_rwsem there is no need to keep
the XFS lock - by relying on the VFS i_rwsem we unify the locking
constraints between difference file systems, reduce the XFS inode size
and reduce the amount of atomic instruction we do with every read
or write call.

Note that Dave asked to kill the XFS mrlock first the last time this
series was posted - while that seems desirable it's not easily possible
due to the way XFS may offload allocator work to a workqueues, and how
lockdep doesn't recognize that.  As removing mrlocks entirely would
be just a cleanup without an affect on locking hierchies or inode
size reduction (except for debug builds) I would prefer to get this
series to remove the iolock in first, and then see what we can do about
the two remaining mrlocks later.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-21 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-21 16:50 remove the XFS iolock, V2 Christoph Hellwig
2016-10-21 16:50 ` [PATCH 1/2] locking/lockdep: Provide a type check for lock_is_held Christoph Hellwig
2016-10-21 16:50 ` [PATCH 2/2] xfs: remove i_iolock and use i_rwsem in the VFS inode instead Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).