]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: require stable pages if message data CRCs are enabled
authorRonny Hegewald <ronny.hegewald@online.de>
Thu, 15 Oct 2015 18:50:46 +0000 (18:50 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 30 Oct 2015 18:25:02 +0000 (19:25 +0100)
commit886664c2ab3e4f4a13c93684a7a05f9fca93a923
treeac82d10dd5e0652b02abeda5e3632fe6d972db1b
parent9ae7ed4b78fb239c70b206266c80e9295ba8d55b
rbd: require stable pages if message data CRCs are enabled

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 b6e04c610c9e5459b874d6525403c6b851f15cb5
"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).

Cc: stable@vger.kernel.org # 3.9+, needs backporting
Signed-off-by: Ronny Hegewald <Ronny.Hegewald@online.de>
[idryomov@gmail.com: require stable pages only in crc case, changelog]
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c