Dave Jiang
e25ff835af
xfs: Close race between direct IO and xfs_break_layouts()
...
This patch is the duplicate of ross's fix for ext4 for xfs.
If the refcount of a page is lowered between the time that it is returned
by dax_busy_page() and when the refcount is again checked in
xfs_break_layouts() => ___wait_var_event(), the waiting function
xfs_wait_dax_page() will never be called. This means that
xfs_break_layouts() will still have 'retry' set to false, so we'll stop
looping and never check the refcount of other pages in this inode.
Instead, always continue looping as long as dax_layout_busy_page() gives us
a page which it found with an elevated refcount.
Signed-off-by: Dave Jiang <dave.jiang@intel.com >
Reviewed-by: Jan Kara <jack@suse.cz >
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com >
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com >
2018-08-12 08:37:31 -07:00
..
2018-08-07 10:57:12 -07:00
2018-08-10 11:44:31 -07:00
2018-05-15 18:12:50 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-07-29 22:37:09 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-08-07 10:57:12 -07:00
2018-07-11 22:25:59 -07:00
2018-07-26 10:15:15 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-08-02 23:05:13 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-06-08 10:07:52 -07:00
2018-06-06 14:17:53 -07:00
2018-07-11 22:26:35 -07:00
2018-07-11 22:26:35 -07:00
2018-06-06 14:17:53 -07:00
2018-07-23 09:08:00 -07:00
2017-11-02 11:10:55 +01:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-08-07 10:57:13 -07:00
2018-06-06 14:17:53 -07:00
2018-07-23 09:08:01 -07:00
2018-06-06 14:17:53 -07:00
2018-07-26 10:15:16 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-08-12 08:37:31 -07:00
2018-08-02 23:05:13 -07:00
2018-06-06 14:17:53 -07:00
2018-07-23 09:08:00 -07:00
2018-06-06 14:17:53 -07:00
2018-07-29 22:37:08 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-07-30 07:57:48 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-07-30 07:57:48 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-12 15:49:00 -07:00
2018-06-06 14:17:53 -07:00
2018-08-07 10:57:12 -07:00
2018-07-31 13:18:09 -07:00
2018-07-26 10:15:16 -07:00
2018-06-06 14:17:53 -07:00
2018-07-26 10:15:16 -07:00
2018-06-06 14:17:53 -07:00
2018-06-08 10:07:52 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:13 -07:00
2018-08-03 08:17:54 -07:00
2018-08-01 07:40:48 -07:00
2018-06-06 14:17:53 -07:00
2017-11-02 11:10:55 +01:00
2018-07-31 13:18:09 -07:00
2018-07-26 10:15:17 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-05-22 07:19:08 -07:00
2018-05-22 07:19:08 -07:00
2018-06-06 14:17:53 -07:00
2018-07-26 10:15:16 -07:00
2018-07-26 10:15:16 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-07-26 10:15:16 -07:00
2018-08-02 23:05:14 -07:00
2018-08-02 23:05:13 -07:00
2018-08-02 23:05:14 -07:00
2018-07-11 22:26:01 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-07-26 10:15:16 -07:00
2018-06-06 14:17:53 -07:00
2018-06-12 15:49:00 -07:00
2018-06-06 14:17:53 -07:00
2018-07-30 07:57:48 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-06-15 07:31:07 +09:00
2018-06-06 14:17:53 -07:00
2018-08-02 23:05:14 -07:00
2018-08-02 23:05:14 -07:00
2018-08-02 23:05:14 -07:00
2018-08-02 23:05:14 -07:00
2018-06-06 14:17:53 -07:00
2018-06-06 14:17:53 -07:00