linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Fix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored
@ 2013-09-20  3:06 Darrick J. Wong
  2013-09-20  3:28 ` Mike Snitzer
  2013-09-20  8:06 ` Mel Gorman
  0 siblings, 2 replies; 6+ messages in thread
From: Darrick J. Wong @ 2013-09-20  3:06 UTC (permalink / raw)
  To: Kent Overstreet, Andrew Morton
  Cc: Mel Gorman, Jens Axboe, Jan Kara, Hannes Reinecke, linux-kernel

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 commit 6bc454d1 (bounce: Refactor
__blk_queue_bounce to not use bi_io_vec)

Reported-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 mm/bounce.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/bounce.c b/mm/bounce.c
index c9f0a43..5a7d58f 100644
--- a/mm/bounce.c
+++ b/mm/bounce.c
@@ -204,6 +204,8 @@ static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig,
 	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;

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

end of thread, other threads:[~2013-09-24  8:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20  3:06 [PATCH] mm: Fix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored Darrick J. Wong
2013-09-20  3:28 ` Mike Snitzer
2013-09-20  8:06 ` Mel Gorman
2013-09-20  8:28   ` Mel Gorman
2013-09-20 16:54     ` Darrick J. Wong
2013-09-24  8:33       ` Mel Gorman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).