]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drbd: set QUEUE_FLAG_STABLE_WRITES
authorChristoph Böhmwalder <christoph@boehmwalder.at>
Wed, 6 Apr 2022 19:04:45 +0000 (21:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Apr 2022 19:07:53 +0000 (13:07 -0600)
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>
drivers/block/drbd/drbd_main.c

index d6dfa286ddb3ec5bd950babdf4f3ac99c20d99dc..4b0b25cc916eed144be0c712034a39ec69304ed3 100644 (file)
@@ -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 */