]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drbd: Fix drbd_request_prepare() discard handling
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 25 Jun 2018 22:51:30 +0000 (15:51 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:43:12 +0000 (19:43 -0600)
commit5573524e8bd13eaec9a378e0bf8bd2c6ae676a38
treef197d0d2f615c29810a6f97a3f4d52cb60235d42
parentc272bb884e2ada93f45f1b974ea60eeb4ea2d055
drbd: Fix drbd_request_prepare() discard handling

BugLink: https://bugs.launchpad.net/bugs/1835845
[ Upstream commit fad2d4ef636654e926d374ef038f4cd4286661f6 ]

Fix the test that verifies whether bio_op(bio) represents a discard
or write zeroes operation. Compile-tested only.

Cc: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
Fixes: 7435e9018f91 ("drbd: zero-out partial unaligned discards on local backend")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/block/drbd/drbd_req.c