Skip to content

Commit 2869019

Browse files
chrboeaxboe
authored andcommitted
drbd: set QUEUE_FLAG_STABLE_WRITES
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>
1 parent ae4d37b commit 2869019

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
@@ -2719,6 +2719,7 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig
27192719
sprintf(disk->disk_name, "drbd%d", minor);
27202720
disk->private_data = device;
27212721

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

0 commit comments

Comments
 (0)