All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mark rbd requiring stable pages
@ 2015-10-15 18:50 Ronny Hegewald
  2015-10-16 11:09 ` Ilya Dryomov
  0 siblings, 1 reply; 16+ messages in thread
From: Ronny Hegewald @ 2015-10-15 18:50 UTC (permalink / raw)
  To: ceph-devel; +Cc: Ilya Dryomov, Sage Weil, Alex Elder

rbd requires stable pages, as it performs a crc of the page data before they 
are send to the OSDs.

But since kernel 3.9 (patch 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0 "mm: only
enforce stable page writes if the backing device requires it") it is not 
assumed anymore that block devices require stable pages.

This patch sets the necessary flag to get stable pages back for rbd.

In a ceph installation that provides multiple ext4 formatted rbd devices "bad 
crc" messages appeared regularly (ca 1 message every 1-2 minutes on every OSD 
that provided the data for the rbd) in the OSD-logs before this patch. After 
this patch this messages are pretty much gone (only ca 1-2 / month / OSD).

This patch seems also to fix data and filesystem corruptions on ext4 formatted 
rbd devices that were previously seen on pretty much a daily basis. But it is 
unknown at the moment why this is the case.  

Signed-off-by: Ronny Hegewald <Ronny.Hegewald@online.de>

---

That the mentioned corruption issue is really affected through this patch 
i could verify through the system logs. Since installation of this patch i 
have seen only a 2-3 filesystem corruptions. But these could be also just 
leftovers of corruptions that happened before the installation but got noticed 
from ext4 only later after the patched kernel was installed. This seems even 
more likely as i have seen not a single data corruption issue since the patch. 

--- linux/drivers/block/rbd.c.org	2015-10-07 01:32:55.906666667 +0000
+++ linux/drivers/block/rbd.c	2015-09-04 02:21:22.349999999 +0000
@@ -3786,6 +3786,7 @@
 
 	blk_queue_merge_bvec(q, rbd_merge_bvec);
 	disk->queue = q;
+	disk->queue->backing_dev_info.capabilities |= BDI_CAP_STABLE_WRITES;
 
 	q->queuedata = rbd_dev;
 

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

end of thread, other threads:[~2015-10-30 11:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 18:50 [PATCH] mark rbd requiring stable pages Ronny Hegewald
2015-10-16 11:09 ` Ilya Dryomov
2015-10-21 20:51   ` Ilya Dryomov
2015-10-21 20:57     ` Ilya Dryomov
2015-10-22  4:07       ` Mike Christie
2015-10-22 11:20         ` Ilya Dryomov
2015-10-22 15:37           ` Mike Christie
2015-10-22 16:52             ` Ilya Dryomov
2015-10-22 17:22               ` Mike Christie
2015-10-22 18:07                 ` Ilya Dryomov
2015-10-23  0:52                 ` Ronny Hegewald
2015-10-22 23:56           ` Ronny Hegewald
2015-10-23  8:32             ` Ilya Dryomov
2015-10-23 19:00               ` Aw: " ronny.hegewald
2015-10-23 19:06                 ` Ilya Dryomov
2015-10-30 11:36                   ` Ilya Dryomov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.