]> git.baikalelectronics.ru Git - 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)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Jun 2018 13:53:21 +0000 (07:53 -0600)
commit43ace42ddd916f6044936fcf68d20f3276809c52
tree37c783585bbdc348eff13ba2e7773e22c3b12bf4
parent5364c2b898b25943d39b7784049e3ded6a1c7976
drbd: Fix drbd_request_prepare() discard handling

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: d8ed4693cb89 ("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>
drivers/block/drbd/drbd_req.c