From patchwork Tue Feb 7 07:00:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ziyang Zhang X-Patchwork-Id: 53752 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2694784wrn; Mon, 6 Feb 2023 23:10:34 -0800 (PST) X-Google-Smtp-Source: AK7set+S5773dZLimmneGvKUCWqq52LrVFSDlRVskoTu6Cy1nn/HGHvMSRGDkmKuBRlAiw7SlvUe X-Received: by 2002:a17:902:c40b:b0:194:9b4e:1c90 with SMTP id k11-20020a170902c40b00b001949b4e1c90mr1890464plk.57.1675753834635; Mon, 06 Feb 2023 23:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675753834; cv=none; d=google.com; s=arc-20160816; b=ve3jBW+6G3TvwCaVMaf118HLewZdS1XTotVpYz+yhXnnnj+oD3+lLkLOjSU6q9y0ru fc0+i7X9sxSdNMyJZW178/1uhIBXgW4WNsfbgD8Bsf8qiPoc2PTKtxk3gg9o7a8LlDFM kjVrKY1RTiDcAjeqPdHgYGyxth7FHBcDhAd+ZKZ5WjrFy9G29qMdAT4gg3ox071fN8E7 WKEB/IgXPU+LsAaJhCaH46MNUihbYMexU43bmJpwSJTgHKr0oIl556kOT7aS+pdHqICJ yMK4i9er9i4EdMvIRBTlvBBDqpD6uCJVP5ItdRb1A4AcO+D25+OE9kvfZ+CH0HZPv5rC yeHQ== 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=yDPunfffvaLR2EOkaCEzrHIM+G6vPwhc2G03/x8AxYEr6/cvwlP2JGA6fBFwVz/4kS HCjPnEXRXFUTyan8otttAS85hyoBRf2+CXbeRRonPPcNqzFJKY9/rCa5BG1DTC7/0Lv6 g9U9My/Ag3fzYKJFoPUgafkd444bFAM7sqQLpgabhaRQKhLGWokrCwHtUt12oNkACZw6 zzaFxf2sWmRwK1xnkSuAFV4Q565dX5FKwZn9gVQKf6IJ0RyS15mA3kArOf5hlRUtrUKt 0oFSQgp/3cIuslDOb+b3EFwdhQIVGYDtDULukDzynaNqCE1UlwIr3RWE0f1e7V4Xuf7D lIHQ== 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.10.22; Mon, 06 Feb 2023 23:10:34 -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 S230458AbjBGHD1 (ORCPT + 99 others); Tue, 7 Feb 2023 02:03:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbjBGHDZ (ORCPT ); Tue, 7 Feb 2023 02:03:25 -0500 Received: from out199-17.us.a.mail.aliyun.com (out199-17.us.a.mail.aliyun.com [47.90.199.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0732011653; Mon, 6 Feb 2023 23:02:50 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R901e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=ziyangzhang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vb61Xbz_1675753325; Received: from localhost.localdomain(mailfrom:ZiyangZhang@linux.alibaba.com fp:SMTPD_---0Vb61Xbz_1675753325) by smtp.aliyun-inc.com; Tue, 07 Feb 2023 15:02:07 +0800 From: Ziyang Zhang 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 Subject: [PATCH 2/3] ublk: mention WRITE_ZEROES in comment of ublk_complete_rq() Date: Tue, 7 Feb 2023 15:00:32 +0800 Message-Id: <20230207070033.367423-3-ZiyangZhang@linux.alibaba.com> X-Mailer: git-send-email 2.18.4 In-Reply-To: <20230207070033.367423-1-ZiyangZhang@linux.alibaba.com> References: <20230207070033.367423-1-ZiyangZhang@linux.alibaba.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757155253221060062?= X-GMAIL-MSGID: =?utf-8?q?1757155253221060062?= 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 --- 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.