summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorZiyang Zhang <ZiyangZhang@linux.alibaba.com>2023-02-07 10:08:38 +0300
committerJens Axboe <axboe@kernel.dk>2023-02-07 17:21:31 +0300
commitb352389e7ba34bdb5bcf4254fa1e85319ba76352 (patch)
tree5f370c6bfca9e03d9664a432a1b3be3d0e865541 /drivers/block
parent731e208d7b4b38d2bac4b7c53403c8abbf306d01 (diff)
downloadlinux-b352389e7ba34bdb5bcf4254fa1e85319ba76352.tar.xz
ublk: mention WRITE_ZEROES in comment of ublk_complete_rq()
WRITE_ZEROES won't return bytes returned just like FLUSH and DISCARD, and we can end it directly. Add missing comment for it in ublk_complete_rq(). Signed-off-by: Ziyang Zhang <ZiyangZhang@linux.alibaba.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20230207070839.370817-3-ZiyangZhang@linux.alibaba.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/ublk_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ublk_drv.c b/drivers/block/ublk_drv.c
index 55fccce68a9c..06eddefdf02a 100644
--- a/drivers/block/ublk_drv.c
+++ b/drivers/block/ublk_drv.c
@@ -665,7 +665,7 @@ static void ublk_complete_rq(struct request *req)
}
/*
- * FLUSH or DISCARD usually won't return bytes returned, so end them
+ * FLUSH, DISCARD or WRITE_ZEROES usually won't return bytes returned, so end them
* directly.
*
* Both the two needn't unmap.