public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2 v3] xfs: handle dquot buffer readahead in log recovery correctly
@ 2016-01-11  3:24 Dave Chinner
  2016-01-11  3:24 ` [PATCH 1/2] xfs: inode recovery readahead can race with inode buffer creation Dave Chinner
  2016-01-11  3:24 ` [PATCH 2/2] xfs: handle dquot buffer readahead in log recovery correctly Dave Chinner
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Chinner @ 2016-01-11  3:24 UTC (permalink / raw)
  To: xfs

Hi folks,

Version 3 of this patchset. Version 2 of the patchset added a fix
for the inode readahead error setting in log recovery, which turned
out to be problematic.

I've split that change out into it's own patch which includes the
fix it requires to prevent a race condition in log recovery to do
with inode buffer creation recovery. This is a generic fix to
xfs_buf_get_map(), in that if we are returning an initialised buffer
for the caller to use, it shouldn't have an error set on it from the
previous operation. If we don't clear the error before returning the
buffer, it causes unexpected failures further down the line. This
caused log recovery failures in generic/073 on slow disks (i.e.
needed sufficient readahead IO latency to open the race window) and
a couple of other tests as well.

The second patch is essentially the original patch with just the
inode buffer changes removed. There are no other changes to that
patch.

Cheers,

Dave.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-11 16:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-11  3:24 [PATCH 0/2 v3] xfs: handle dquot buffer readahead in log recovery correctly Dave Chinner
2016-01-11  3:24 ` [PATCH 1/2] xfs: inode recovery readahead can race with inode buffer creation Dave Chinner
2016-01-11 16:03   ` Brian Foster
2016-01-11  3:24 ` [PATCH 2/2] xfs: handle dquot buffer readahead in log recovery correctly Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox