Skip to contentSkip to conversation

dax-fix-inefficiency-in-dax_writeback_mapping_range.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 26, 2017 Stable branch

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: fs/dax.c: fix inefficiency in dax_writeback_mapping_range()
has been removed from the -mm tree. Its filename was
dax-fix-inefficiency-in-dax_writeback_mapping_range.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jan Kara <[email protected]>
Subject: fs/dax.c: fix inefficiency in dax_writeback_mapping_range()

dax_writeback_mapping_range() fails to update iteration index when searching radix tree for entries needing cache flushing. Thus each pagevec worth of entries is searched starting from the start which is inefficient and prone to livelocks. Update index properly.

Fixes 9973c98ecfda3 ("dax: add support for fsync/sync")
Cc Dan Williams <[email protected]>

---

 fs/dax.c |    1 +
 1 file changed, 1 insertion(+)
fs/dax.c renamed from fs/dax.c~dax-fix-inefficiency-in-dax_writeback_mapping_range +1 -0
diff -puN fs/dax.c~dax-fix-inefficiency-in-dax_writeback_mapping_range fs/dax.c
@@ -859,6 +859,7 @@ int dax_writeback_mapping_range(struct a
 			if (ret < 0)
 				goto out;
 		}
+		start_index = indices[pvec.nr - 1] + 1;
 	}
 out:
 	put_dax(dax_dev);

_

Patches currently in -mm which might be from [email protected] are

mm-fix-thp-handling-in-invalidate_mapping_pages.patch