Home
last modified time | relevance | path

Searched hist:f307080a626569f89bc8fbad9f936b307aded877 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_ialloc.cdiff f307080a626569f89bc8fbad9f936b307aded877 Tue Aug 18 19:00:53 CDT 2015 Brian Foster <bfoster@redhat.com> xfs: fix btree cursor error cleanups

The btree cursor cleanup function takes an error parameter that
affects how buffers are released from the cursor. All buffers are
released in the event of error. Several callers do not specify the
XFS_BTREE_ERROR flag in the event of error, however. This can cause
buffers to hang around locked or with an elevated hold count and
thus lead to umount hangs in the event of errors.

Fix up the xfs_btree_del_cursor() callers to pass XFS_BTREE_ERROR if
the cursor is being torn down due to error.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
/openbmc/linux/fs/xfs/
H A Dxfs_itable.cdiff f307080a626569f89bc8fbad9f936b307aded877 Tue Aug 18 19:00:53 CDT 2015 Brian Foster <bfoster@redhat.com> xfs: fix btree cursor error cleanups

The btree cursor cleanup function takes an error parameter that
affects how buffers are released from the cursor. All buffers are
released in the event of error. Several callers do not specify the
XFS_BTREE_ERROR flag in the event of error, however. This can cause
buffers to hang around locked or with an elevated hold count and
thus lead to umount hangs in the event of errors.

Fix up the xfs_btree_del_cursor() callers to pass XFS_BTREE_ERROR if
the cursor is being torn down due to error.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>