]> git.baikalelectronics.ru Git - kernel.git/commit
loop: don't try to use AIO for discards
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Aug 2016 14:10:00 +0000 (16:10 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 4 Aug 2016 20:19:16 +0000 (14:19 -0600)
commitce6fca9bc75fecf34d04980a56feb71561e5a4e5
treee61f490b47a997149aa391b301fa3f3b463d66e1
parentb35d6c87bd3e383330875154f0242be6c08d6541
loop: don't try to use AIO for discards

Fix a fat-fingered conversion to the req_op accessors, and also
use a switch statement to make it more obvious what is being checked.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Dave Chinner <david@fromorbit.com>
Fixes: c2df40 ("drivers: use req op accessor");
Reviewed-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/loop.c