OSDN Git Service

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)
commitfad2d4ef636654e926d374ef038f4cd4286661f6
tree37c783585bbdc348eff13ba2e7773e22c3b12bf4
parent1f57f8d442f8017587eeebd8617913bfc3661d3d
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: 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>
drivers/block/drbd/drbd_req.c