Skip to content

Commit 523e134

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull Ceph fix from Sage Weil: "This sets the stable pages flag on the RBD block device when we have CRCs enabled. (This is necessary since the default assumption for block devices changed in 3.9)" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: rbd: require stable pages if message data CRCs are enabled
2 parents 4bb0fb5 + bae818e commit 523e134

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/block/rbd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3780,6 +3780,9 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
37803780
blk_queue_max_discard_sectors(q, segment_size / SECTOR_SIZE);
37813781
q->limits.discard_zeroes_data = 1;
37823782

3783+
if (!ceph_test_opt(rbd_dev->rbd_client->client, NOCRC))
3784+
q->backing_dev_info.capabilities |= BDI_CAP_STABLE_WRITES;
3785+
37833786
disk->queue = q;
37843787

37853788
q->queuedata = rbd_dev;

0 commit comments

Comments
 (0)