umber-kernel/drivers/block/drbd
Christoph Böhmwalder c766477992 drbd: always set BLK_FEAT_STABLE_WRITES
[ Upstream commit 2ebc8d600fb907fa6b1e7095c0b6d84fc47e91ea ]

DRBD requires stable pages because it may read the same bio data
multiple times for local disk I/O and network transmission, and in
some cases for calculating checksums.

The BLK_FEAT_STABLE_WRITES flag is set when the device is first
created, but blk_set_stacking_limits() clears it whenever a
backing device is attached. In some cases the flag may be
inherited from the backing device, but we want it to be enabled
at all times.

Unconditionally re-enable BLK_FEAT_STABLE_WRITES in
drbd_reconsider_queue_parameters() after the queue parameter
negotiations.

Also, document why we want this flag enabled in the first place.

Fixes: 1a02f3a73f ("block: move the stable_writes flag to queue_limits")
Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-02-26 14:59:36 -08:00
..
Kconfig
Makefile
drbd_actlog.c
drbd_bitmap.c
drbd_buildtag.c
drbd_debugfs.c
drbd_debugfs.h
drbd_int.h
drbd_interval.c
drbd_interval.h
drbd_main.c
drbd_nl.c
drbd_nla.c
drbd_nla.h
drbd_polymorph_printk.h
drbd_proc.c
drbd_protocol.h
drbd_receiver.c
drbd_req.c
drbd_req.h
drbd_state.c
drbd_state.h
drbd_state_change.h
drbd_strings.c
drbd_strings.h
drbd_vli.h
drbd_worker.c