]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: force the log if we encounter pinned buffers in .iop_pushbuf
authorChristoph Hellwig <hch@infradead.org>
Tue, 11 Oct 2011 15:14:09 +0000 (15:14 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 11 Oct 2011 16:02:48 +0000 (11:02 -0500)
commit913750bdf0c84d5e35e4efc928a6ea6ce9e44db0
tree163e112a5736240efc29dab83d0603c931dff98f
parent14c4e5505f67383484818473f546dd4e16d0aa84
xfs: force the log if we encounter pinned buffers in .iop_pushbuf

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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_dquot_item.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_trans.h
fs/xfs/xfs_trans_ail.c