Files
android_kernel_xiaomi_sm8450/fs/xfs/linux-2.6
Dave Chinner 487f84f3f8 xfs: introduce xfs_rw_lock() helpers for locking the inode
We need to obtain the i_mutex, i_iolock and i_ilock during the read
and write paths. Add a set of wrapper functions to neatly
encapsulate the lock ordering and shared/exclusive semantics to make
the locking easier to follow and get right.

Note that this changes some of the exclusive locking serialisation in
that serialisation will occur against the i_mutex instead of the
XFS_IOLOCK_EXCL. This does not change any behaviour, and it is
arguably more efficient to use the mutex for such serialisation than
the rw_sem.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2011-01-12 11:37:10 +11:00
..
2008-04-29 15:54:02 +10:00
2010-07-26 13:16:44 -05:00
2010-12-16 16:06:07 -06:00
2010-12-16 16:05:51 -06:00
2007-10-22 08:13:20 -07:00
2010-10-18 15:08:06 -05:00
2010-11-10 12:00:48 -06:00
2009-09-15 12:29:24 -05:00
2008-10-30 16:55:03 +11:00
2010-10-18 15:08:04 -05:00
2009-12-14 23:08:16 -06:00
2010-05-21 18:31:19 -04:00