]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: force the log if we encounter pinned buffers in .iop_pushbuf
authorChristoph Hellwig <hch@infradead.org>
Tue, 18 Oct 2011 14:23:18 +0000 (10:23 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:06 +0000 (11:17 -0800)
commit6c79305a37ccf1be5997963e76bf29218d763e2b
tree729d5d1cab73311638a08e8bea3c1e6d9a3e59aa
parent24483b60a6a6a416a19500fb472b09a64cddad22
xfs: force the log if we encounter pinned buffers in .iop_pushbuf

commit 17b38471c3c07a49f0bbc2ecc2e92050c164e226 upstream

We need to check for pinned buffers even in .iop_pushbuf given that inode
items flush into the same buffers that may be pinned directly due operations
on the unlinked inode list operating directly on buffers.  To do this add a
return value to .iop_pushbuf that tells the AIL push about this and use
the existing log force mechanisms to unpin it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Stefan Priebe <s.priebe@profihost.ag>
Tested-by: Stefan Priebe <s.priebe@profihost.ag>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/quota/xfs_dquot_item.c
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_trans.h
fs/xfs/xfs_trans_ail.c