aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiyang Zhang <[email protected]>2023-02-07 15:08:38 +0800
committerJens Axboe <[email protected]>2023-02-07 07:21:31 -0700
commitb352389e7ba34bdb5bcf4254fa1e85319ba76352 (patch)
tree5f370c6bfca9e03d9664a432a1b3be3d0e865541
parent731e208d7b4b38d2bac4b7c53403c8abbf306d01 (diff)
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-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.