Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1834366pxv; Fri, 23 Jul 2021 19:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJTcwD98sIHLcJO8bx1heVqS6CYGqO92opCER8+oje8xSj3iJR6MQNWQUjFasBmafP9uVQ X-Received: by 2002:a05:6402:503:: with SMTP id m3mr9008279edv.183.1627094021906; Fri, 23 Jul 2021 19:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627094021; cv=none; d=google.com; s=arc-20160816; b=YcGEA/RApYSSsD1cvskxH8rGjETyHgIkP60T+V8/QQfV1qa43TdL8uewh7iHRsiHBT o3J6tpDWrLHvej3sx4W28xynHoRBmRmBXqWcWAwANPDyV+673kDtfXDPeh7VQa3nTdCh TEv7WaHsfE/AGkbGa+Uo5HmDsYOKwTP1ju5rT1doBh3pZ4PjLazFq69Lb9c7omRlK7mM s923X8pUdiy5fQQLlNciHzsKMVw5kMb8p36JjgNNEPM7MWjJI0HKDtwx1Ak3DE0fju4z mYHYAtG+Wur39auGtDl51UT/fWNcyeEmAF0mnTaUSYVhDvihF5HRN0TikHj3KKUbCAig 1pxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=0/byHsdU764uufG99aGhKfw+eG2bqSlxsQVw1hVzBEg=; b=KI+9EkFv0rX7RpctrMSlr8t5+Lr7/iRbFppgSAtAqL4A+24NhCqeSF6IBNveeeOLMo x05c8EiWO1Zqf1bwLgZwpp+VV8boLAQ5VOKmaKoZ4YgNRoNJfu6diyl6exg6/eRKIivH xtzNWx06KdA3LFdL8fKLWTeu/1Ch13NECel29SJ2KRrZcWwCCkN04dC2evgbP45Bes3v oSxSJgYKhMDu+6WE9cxhXWif34MQZ8YjDXBQPIfS+W4SRpOqH8IUM353zE0as04KteyS 12pvdi+82i6ZHmjCiGimH7N+X69E3sa/FoqQaRIdxDydcRK1v1LTinnLEy+64gMT8CiM wKNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si43922082ejb.152.2021.07.23.19.33.17; Fri, 23 Jul 2021 19:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233366AbhGXBvO (ORCPT + 99 others); Fri, 23 Jul 2021 21:51:14 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:54184 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232673AbhGXBvN (ORCPT ); Fri, 23 Jul 2021 21:51:13 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R891e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UglKWF5_1627093904; Received: from 192.168.0.105(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0UglKWF5_1627093904) by smtp.aliyun-inc.com(127.0.0.1); Sat, 24 Jul 2021 10:31:45 +0800 Subject: Re: [PATCH] dm io: fix comments to align with on-stack plugging To: agk@redhat.com, snitzer@redhat.com Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org References: <1626537263-8752-1-git-send-email-xianting_tian@126.com> From: Xianting Tian Message-ID: Date: Sat, 24 Jul 2021 10:31:44 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1626537263-8752-1-git-send-email-xianting_tian@126.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Could I get the comments for the patch?  thanks 在 2021/7/17 下午11:54, Xianting Tian 写道: > From: Xianting Tian > > Ther is no unplugging timer now, on-stack io plugging is used: > struct blk_plug plug; > > blk_start_plug(&plug); > submit_batch_of_io(); > blk_finish_plug(&plug); > > So remove the old comments for unplugging timer. > > Signed-off-by: Xianting Tian > --- > drivers/md/dm-io.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c > index 2d3cda0..7dba193 100644 > --- a/drivers/md/dm-io.c > +++ b/drivers/md/dm-io.c > @@ -528,11 +528,6 @@ static int dp_init(struct dm_io_request *io_req, struct dpages *dp, > > /* > * New collapsed (a)synchronous interface. > - * > - * If the IO is asynchronous (i.e. it has notify.fn), you must either unplug > - * the queue with blk_unplug() some time later or set REQ_SYNC in > - * io_req->bi_opf. If you fail to do one of these, the IO will be submitted to > - * the disk after q->unplug_delay, which defaults to 3ms in blk-settings.c. > */ > int dm_io(struct dm_io_request *io_req, unsigned num_regions, > struct dm_io_region *where, unsigned long *sync_error_bits)