]> 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)
commit6d04679ffc35de7ba6a3adc4c9949e77319ab132
tree37c783585bbdc348eff13ba2e7773e22c3b12bf4
parent1789bac8efa8c62ded0a4f4c36dea029f6144810
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: 6c9ca9eaa6a9 ("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