]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: add the ability to join a held buffer to a defer_ops
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Jan 2018 19:42:03 +0000 (13:42 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 3 Jan 2018 19:42:03 +0000 (13:42 -0600)
commit6f67c32d94e26f8478cbf4e8f61755bacdaba5a7
tree4320a72d28d71f6bb31b683af5e349cd5794c136
parent59630067f764c9f76053058ed51c123da532dc76
xfs: add the ability to join a held buffer to a defer_ops

Source kernel commit: b7b2846fe26f2c0d7f317c874a13d3ecf22670ff

In certain cases, defer_ops callers will lock a buffer and want to hold
the lock across transaction rolls.  Similar to ijoined inodes, we want
to dirty & join the buffer with each transaction roll in defer_finish so
that afterwards the caller still owns the buffer lock and we haven't
inadvertently pinned the log.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_defer.c
libxfs/xfs_defer.h