public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: fix a couple of swap extent issues
@ 2014-06-06  8:22 Dave Chinner
  2014-06-06  8:22 ` [PATCH 1/2] xfs: fix swapext ilock deadlock Dave Chinner
  2014-06-06  8:22 ` [PATCH 2/2] xfs: flush both inodes in xfs_swap_extents Dave Chinner
  0 siblings, 2 replies; 10+ messages in thread
From: Dave Chinner @ 2014-06-06  8:22 UTC (permalink / raw)
  To: xfs

Hi folks,

Eric pointed out that this morning that if xfs_fsr didn't fsync the
target file, the swap extents ioctl deadlocked. Dumb bug, simple
fix. I also made sure that swap extent treats both inodes the same
in terms of flushing, page cache pages and being mmap()d so that if
anyone other than xfs_fsr uses it it doesn't go boom when the second
inode is not a newly created empty file.

Thoughts?

-Dave.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH 0/2] xfs: extent swap fixes
@ 2014-07-31  6:12 Dave Chinner
  2014-07-31  6:12 ` [PATCH 2/2] xfs: flush both inodes in xfs_swap_extents Dave Chinner
  0 siblings, 1 reply; 10+ messages in thread
From: Dave Chinner @ 2014-07-31  6:12 UTC (permalink / raw)
  To: xfs

Hi folks,

The extent swap code is not symmetrical, so correct behaviour is
dependent on userspace doing the right thing. If we try to swap
extents with the temporary inode in the wrong state we can have
interesting failures. These two patches fix those issues and treat
the two files identically in terms of the state of the data
contained in the files being swapped. Failure to write or remove all
cached data from either file will now cause the swap extents
operation to fail.

Comments, thoughts?

Cheers,

Dave.

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

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

end of thread, other threads:[~2014-08-02 11:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06  8:22 [PATCH 0/2] xfs: fix a couple of swap extent issues Dave Chinner
2014-06-06  8:22 ` [PATCH 1/2] xfs: fix swapext ilock deadlock Dave Chinner
2014-06-06 19:59   ` Brian Foster
2014-06-06  8:22 ` [PATCH 2/2] xfs: flush both inodes in xfs_swap_extents Dave Chinner
  -- strict thread matches above, loose matches on Subject: below --
2014-07-31  6:12 [PATCH 0/2] xfs: extent swap fixes Dave Chinner
2014-07-31  6:12 ` [PATCH 2/2] xfs: flush both inodes in xfs_swap_extents Dave Chinner
2014-07-31 17:16   ` Christoph Hellwig
2014-07-31 23:02     ` Dave Chinner
2014-08-01 12:44   ` Brian Foster
2014-08-02  3:19     ` Dave Chinner
2014-08-02 11:24       ` Brian Foster

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