Message ID | 20230207070839.370817-3-ZiyangZhang@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2696087wrn; Mon, 6 Feb 2023 23:14:19 -0800 (PST) X-Google-Smtp-Source: AK7set+dpF4AajmireoZWIokrfSA3KAFD5ovdKtTWyX5XHoVb1LECySxS4eBJbf5+1+rBzQpep8E X-Received: by 2002:a17:903:2312:b0:198:adc4:2289 with SMTP id d18-20020a170903231200b00198adc42289mr16049165plh.4.1675754058962; Mon, 06 Feb 2023 23:14:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675754058; cv=none; d=google.com; s=arc-20160816; b=VGRL67pWobwo5+Vj/g9MaaUtAkVgYGghhUdOXFX9GezjvDtC4olcDyMEpIG8zrh25O Z2t2A3pqpBnO7DscPOMLBNsIyYXbhHwd+dM6bFn7jvsVjgb+2TA/LUL04Lbcoi6v2nHg KQnHsvBbGfy29H8JOmUlhHP/GLhro+NIgxQtba3ZQEB0sSrVnNGo1ovh2oPgdQDGR9hM 91O9NPpxCYY8x8k6GXyg8/bK6jJUbPvhEiDkyyrVlMku08CXbtDvMClTm3ehSC+RAF3+ eDw36MddxkrOYVaMXPURhu1TgiA+APv4JkfrY3cJ4e8JMUyn0Y5cyxqQinvqPNFebrlH wqWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=3Cx9PoSE9Bsqajb4PoKBys8BR/HgcGIcI7rw7nA0L34=; b=Sw/cDax676s/kYqnJOAm6mYTlnH7HuBwMC7uFwPox/NEDA97R4TiaD6bo+EkfOFXXc bjMVOy51ZiPYX3TA4DY8GjYFiDoKAeyIDXqJzTrFohwPO3iMIG5DOButwlLRN5C1fNV9 zF4OZpQx1dm3T0QCMsZVQTDa1Q3d8lzKt++GdkT7FqbIR01uOuwghUemWs8f0X1YQm3i cTpcd+MEq76c2ncJyzfIReTQlzoIOtXNzITHbVPodfz+lqLM6DC77lP7XF5LwvxGyCgI HrIsLx0RNvmpBtAYhGZQnfgc+XH5O3rdE+aTqLC3vhL50k+B23Q8J/kMS1BKqJPiJohQ FvLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170902ea0c00b00198fb189682si10784939plg.476.2023.02.06.23.14.06; Mon, 06 Feb 2023 23:14:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjBGHJO (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Tue, 7 Feb 2023 02:09:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjBGHJI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Feb 2023 02:09:08 -0500 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46521423C; Mon, 6 Feb 2023 23:09:06 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=ziyangzhang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vb64zFn_1675753742; Received: from localhost.localdomain(mailfrom:ZiyangZhang@linux.alibaba.com fp:SMTPD_---0Vb64zFn_1675753742) by smtp.aliyun-inc.com; Tue, 07 Feb 2023 15:09:03 +0800 From: Ziyang Zhang <ZiyangZhang@linux.alibaba.com> To: axboe@kernel.dk, ming.lei@redhat.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, joseph.qi@linux.alibaba.com, Ziyang Zhang <ZiyangZhang@linux.alibaba.com> Subject: [PATCH RESEND 2/3] ublk: mention WRITE_ZEROES in comment of ublk_complete_rq() Date: Tue, 7 Feb 2023 15:08:38 +0800 Message-Id: <20230207070839.370817-3-ZiyangZhang@linux.alibaba.com> X-Mailer: git-send-email 2.18.4 In-Reply-To: <20230207070839.370817-1-ZiyangZhang@linux.alibaba.com> References: <20230207070839.370817-1-ZiyangZhang@linux.alibaba.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757155488020969859?= X-GMAIL-MSGID: =?utf-8?q?1757155488020969859?= |
Series |
cleanup for ublk
|
|
Commit Message
Ziyang Zhang
Feb. 7, 2023, 7:08 a.m. UTC
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>
---
drivers/block/ublk_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, Feb 07, 2023 at 03:08:38PM +0800, Ziyang Zhang wrote: > 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> > --- > drivers/block/ublk_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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. Reviewed-by: Ming Lei <ming.lei@redhat.com> Thanks, Ming
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.