Skip to content

Commit 184b4fa

Browse files
chrboegregkh
authored andcommitted
drbd: set QUEUE_FLAG_STABLE_WRITES
[ Upstream commit 2869019 ] We want our pages not to change while they are being written. Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6a03581 commit 184b4fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/block/drbd/drbd_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,6 +2737,7 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig
27372737
sprintf(disk->disk_name, "drbd%d", minor);
27382738
disk->private_data = device;
27392739

2740+
blk_queue_flag_set(QUEUE_FLAG_STABLE_WRITES, disk->queue);
27402741
blk_queue_write_cache(disk->queue, true, true);
27412742
/* Setting the max_hw_sectors to an odd value of 8kibyte here
27422743
This triggers a max_bio_size message upon first attach or connect */

0 commit comments

Comments
 (0)