diff options
author | Christoph Böhmwalder | 2022-04-06 21:04:45 +0200 |
---|---|---|
committer | Jens Axboe | 2022-04-06 13:07:53 -0600 |
commit | 286901941fd18a52b2138fddbbf589ad3639eb00 (patch) | |
tree | 357f09243e644dea7e221c65074aa1cc0cb407ee /drivers | |
parent | ae4d37b5df749926891583d42a6801b5da11e3c1 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index d6dfa286ddb3..4b0b25cc916e 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2719,6 +2719,7 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig sprintf(disk->disk_name, "drbd%d", minor); disk->private_data = device; + blk_queue_flag_set(QUEUE_FLAG_STABLE_WRITES, disk->queue); blk_queue_write_cache(disk->queue, true, true); /* Setting the max_hw_sectors to an odd value of 8kibyte here This triggers a max_bio_size message upon first attach or connect */ |