block: ublk_drv: don't consider flush request in map/unmap io
authorMing Lei <ming.lei@redhat.com>
Thu, 30 Mar 2023 11:36:21 +0000 (19:36 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Apr 2023 01:22:54 +0000 (19:22 -0600)
commit23ef8220f287abe5bf741ddfc278e7359742d3b1
treee2202a9ef6a46cf88104532620ccfad1f76b3e6b
parent903f8aeea9fd1b97fba4ab805ddd639f57f117f8
block: ublk_drv: don't consider flush request in map/unmap io

There isn't data in request of REQ_OP_FLUSH always, so don't consider
it in both ublk_map_io() and ublk_unmap_io().

Reviewed-by: Ziyang Zhang <ZiyangZhang@linux.alibaba.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c