summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_actlog.c
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2016-06-14 00:26:21 +0200
committerJens Axboe <axboe@fb.com>2016-06-13 21:43:05 -0600
commit69ba1ee9360a6ed4adb3168fd93db430a4276332 (patch)
tree28555aad1824906e29354236f8a215d4f030b7c9 /drivers/block/drbd/drbd_actlog.c
parentdd4f699da674010c58d7a2534215b4ca1ff13b13 (diff)
downloadlinux-stable-69ba1ee9360a6ed4adb3168fd93db430a4276332.tar.gz
linux-stable-69ba1ee9360a6ed4adb3168fd93db430a4276332.tar.bz2
linux-stable-69ba1ee9360a6ed4adb3168fd93db430a4276332.zip
drbd: possibly disable discard support, if backend has discard_zeroes_data=0
Now that we have the discard_zeroes_if_aligned setting, we should also check it when setting up our queue parameters on the primary, not only on the receiving side. We announce discard support, UNLESS * we are connected to a peer that does not support TRIM on the DRBD protocol level. Otherwise, it would either discard, or do a fallback to zero-out, depending on its backend and configuration. * our local backend does not support discards, or (discard_zeroes_data=0 AND discard_zeroes_if_aligned=no). Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/drbd/drbd_actlog.c')
0 files changed, 0 insertions, 0 deletions