Skip to contentSkip to conversation

+ mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Sep 23, 2013 Memory management

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 23 Sep 2013 15:16:34 -0700

The patch titled
Subject: mm/bounce.c: wix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored
has been added to the -mm tree. Its filename is
mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: "Darrick J. Wong" <[email protected]>
Subject: mm/bounce.c: wix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored

The "force" parameter in __blk_queue_bounce was being ignored, which means that stable page snapshots are not always happening (on ext3). This of course leads to DIF disks reporting checksum errors, so fix this regression.

The regression was introduced in 6bc454d1 ("bounce: Refactor __blk_queue_bounce to not use bi_io_vec")

---

 mm/bounce.c |    2 ++
 1 file changed, 2 insertions(+)
mm/bounce.c renamed from mm/bounce.c~mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored +2 -0
diff -puN mm/bounce.c~mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored mm/bounce.c
@@ -204,6 +204,8 @@ static void __blk_queue_bounce(struct re
 	struct bio_vec *to, *from;
 	unsigned i;
 
+	if (force)
+		goto bounce;
 	bio_for_each_segment(from, *bio_orig, i)
 		if (page_to_pfn(from->bv_page) > queue_bounce_pfn(q))
 			goto bounce;

_

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

mm-bouncec-wix-a-regression-where-ms_snap_stable-stable-pages-snapshotting-was-ignored.patch