Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2000899rwb; Thu, 15 Dec 2022 17:59:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rFK/cCVzt+KxbnZWV8B/QHJGkSXmYwETT7vMyrcE57C91mzAok5mDBfeDNFRSDV1Jby93 X-Received: by 2002:a17:906:68c8:b0:7c0:d6ba:c934 with SMTP id y8-20020a17090668c800b007c0d6bac934mr11906151ejr.13.1671155962647; Thu, 15 Dec 2022 17:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671155962; cv=none; d=google.com; s=arc-20160816; b=Nz6Sx8rp4mWFFI97x2eo6RkB5lR0zrx8NVdeIDwlz9EYXazynGmWOaNqtlxKmwzx4V jd4lBQB1WAjMfJOZkkR4A0HLJcicLkymVtx54bAQrXWZNyDpGgGSq7GNhyE1fz6BZyro TCJq2uWKlIokdgAws1kSY2RHulzrBreX8XKUvS/acoUAWWgsSCypdInt1kS6QbBcoCgi iS9PIRquBpFqn0eo2bo10UYgshb2iEAWz04ul7Rde60p52eV1jBEkDUXhPs100Di2n7u +sPEkcgwoW+nZFZMR2FoHVSvM3fCI0sCXiSUW29AU4mqcv2+IJtFdGTHGKx4epzXISV5 C+Dg== 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:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=iUxgBUchjwfFgwVAeUZQZdjmftiHITCsE/ZmyrGERkU=; b=M60rLEAZYEcdo/khJkrYeREzqwHGplnwdZi01KMZ3TsZAdU3xi4cnPty7N3QhINhqC 42BvnM3suVkPBvUTcuZZzIv9nx7bv50JOxBo0klNU624zj/WaNyS/G83+Wr9nnKjAe5Z LbShR+D/dYz54WpgB6KVojgib6zA+QPt+fSmo62yy9xayqQT6Zmu7a30ra6S3+K3KvXe +YVj659ypwWKJS/8PhP88T2Ef0MVcqtHQBfPOMCd6KG9ntjd4rJVOzOPwX5G+YDiZEdA nW3UYK8R2X58mfETlOByi0SKvJ9w4fLvLQnUcY8ge5rsUj9C8cMD3Y1V0fQIl5oLTKbf 1vKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="mdtb/tPu"; 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=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf25-20020a170907175900b007c0a8ff3384si646664ejc.763.2022.12.15.17.59.05; Thu, 15 Dec 2022 17:59:22 -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; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="mdtb/tPu"; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbiLPBgS (ORCPT + 68 others); Thu, 15 Dec 2022 20:36:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiLPBgN (ORCPT ); Thu, 15 Dec 2022 20:36:13 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907AA2E9FA for ; Thu, 15 Dec 2022 17:36:12 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id x2so809876plb.13 for ; Thu, 15 Dec 2022 17:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=iUxgBUchjwfFgwVAeUZQZdjmftiHITCsE/ZmyrGERkU=; b=mdtb/tPulG/eVWDSw679Lrwa7QpZngLol1fZQKHbE1PKOGFUbwuGWOvkcGfRewp6C4 0oJDkz3zRqQNoNs5XcwiHZXnPPNtE7YJqvaznHg1asrR7IvO74Smf0Zz3DWfOGADJeL5 i6Yon1OAe+Igj6MNkP1ZzTB4gATPzqhaZcyn4FECAq0eNpfTzsrY/4qN6/5Vak8u5p1j Cwbz3TH2ASjWQtWBttF0XHW+FvE5DR2fx3CZKvAAaAHXNpICh8B0ZAeNlme5acUYVbpP yEX9u+tX2f5FtvkHAp1bRxS1u/QzwNcNrSpGshNreNvuYU1OmXpwquDmvvtKFWcSS6gb dQyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=iUxgBUchjwfFgwVAeUZQZdjmftiHITCsE/ZmyrGERkU=; b=PGcOA5X4T8zjBUrUz9/JFFa9JQdPCFujVFoH6U6QtKmu3hp9UdZJpngO6KeY+zARGq doJZq3k28Hz65L9Diam9GiYdDQ7fGdizm+1YsLCcXpXub38wYHfK1ZqKm/N9r8WQsFuB AzLPbIHF8KqSOtWAqisaAY129NW4IHCzz1Ga6SwAIZLvCMjiPn+SuN2efU7urD2pWZdZ eUwPVs5F6VOHbYnuQvDuSXTe0ctRcbE7x+g4+QG1EkjgyJOuG+DeHXV3RgSJuLnizynB FdbkpTwvMmFJItPJbyDegVdoa4QvriTY+xjCmQh8F7tBLf9cThMBbGNZvF37xbqeowTF lpaw== X-Gm-Message-State: ANoB5plbnELxuugEWIHdFkC/F6WvB/fQYSMPddJUijJeTMHa+nSM4NZO yvOXX1eT1Y29QrgJf2LauFnwlVHBJTqWiOQzx9E= X-Received: by 2002:a05:6a21:2d8a:b0:a5:cc8f:cd14 with SMTP id ty10-20020a056a212d8a00b000a5cc8fcd14mr38001497pzb.35.1671154572077; Thu, 15 Dec 2022 17:36:12 -0800 (PST) Received: from [10.4.227.8] ([139.177.225.231]) by smtp.gmail.com with ESMTPSA id n20-20020a638f14000000b00478c48cf73csm332438pgd.82.2022.12.15.17.36.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Dec 2022 17:36:11 -0800 (PST) Message-ID: <2bd8080a-6b57-124d-c3e0-6d5baf4c2ce8@bytedance.com> Date: Fri, 16 Dec 2022 09:36:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [External] Re: [RFC PATCH] blk-throtl: Introduce sync queue for write ios To: Tejun Heo Cc: josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221206163826.10700-1-hanjinke.666@bytedance.com> <1e53592f-b1f1-df85-3edb-eba4c5a5f989@bytedance.com> From: hanjinke In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 在 2022/12/16 上午12:46, Tejun Heo 写道: > Hello, > > On Wed, Dec 14, 2022 at 12:02:53PM +0800, hanjinke wrote: >> Should we keep the main category of io based READ and WRITE, and within READ >> / WRITE the subcategory were SYNC and ASYNC ? This may give less intrusion >> into existing frameworks. > > Ah, you haven't posted yet. So, yeah, let's do this. The code was a bit odd > looking after adding the sync queue on the side. For reads, we can just > consider everything synchrnous (or maybe treat SYNC the same way, I don't > know whether reads actually use SYNC flags tho). > > Thanks. > okay, the patch v1 will be sent based on your suggestion. Thanks.