Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1472086rda; Mon, 23 Oct 2023 13:47:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGb56ftiyKydx6my1mWqSYuLBww/DtLvuj/LHsmfHK4YyOU1ceJQXtxJSEvEA07Y4gHurqU X-Received: by 2002:a05:6a21:338b:b0:177:a131:f31c with SMTP id yy11-20020a056a21338b00b00177a131f31cmr891638pzb.13.1698094039199; Mon, 23 Oct 2023 13:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698094039; cv=none; d=google.com; s=arc-20160816; b=Xvyk91wL4lSAZqjb7EtGnYQRd/QborHJUHgpX66kyKBhjY2rGaW4wRwuSk+1SL+I4l m3QTgpFp9e6cks35qIihj6nf4H8Sf8VFM9NzAL9garnsaIjqed9/fdMnUmeNPKjt8OyX shp0AFfAEXqOVX6OIiCcbJlGnKBzXOfhFcUcyX5RdbinlMqwSFeHDzb9m+c/YQ8vhx5l MiHaqTA0VY0nl+F4mKDLsnoPzDeORg+cLzX7mHTKz61tySETY+rEFLb11kyq4VbNeBI+ Dpv8Lc+J6Wg+1MDDnlgrY6cRGFkT8CV9Vkz2IDg37b9lgQIHXUDnVsyRjCMPFWxy9daO NiGQ== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=GrX5rfIviWZ3MV5YYguySJMRct/o0TPbHAjKwB4P258=; fh=khsxVsho87XhSInJdmEYwLLwyHRqPUdygcy1pd8L4oY=; b=i9U4h1kRzMwSVkc9/WrfPt/ftg4KehGXPrJ2w+XdrfAN5EHoMyqsEEQIcGQ+PXVBe/ RErJqzVJjbyUD18h86cKlOvbwjURr/s5gX4FNXcYAX4OMo/onVN73YBaSDtd4zd2iC18 ei4cMS508/b3/XMyFHk/YnIuNEuOR2Fi5qZN+Y3asWgtux4kyLqS9JQ6qgoE+2OStVk0 BMdNflWZlsad/yxykH2tvFCF1Q0vfXXZZIdvlxvojKILmjBijZtHlq6sHPSdNESNonmd ukfpae9Uz/Vf7BGUdYPNZ3KtVKocBYWYyVdnTzna01AydIJPMqEbFD12vRv4EXFyTSSb 73hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f9-20020a056a00238900b006bbd1aafc1dsi7023677pfc.288.2023.10.23.13.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 13:47:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E255980699B6; Mon, 23 Oct 2023 13:47:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbjJWUrB (ORCPT + 99 others); Mon, 23 Oct 2023 16:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjJWUrA (ORCPT ); Mon, 23 Oct 2023 16:47:00 -0400 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0A2DBC; Mon, 23 Oct 2023 13:46:58 -0700 (PDT) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1c9e06f058bso35039685ad.0; Mon, 23 Oct 2023 13:46:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698094018; x=1698698818; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GrX5rfIviWZ3MV5YYguySJMRct/o0TPbHAjKwB4P258=; b=YZ1R5emjRFSj4vkSQvDvhwNs1TDS2+de3huXOo6mt8juubRv8Im62NLGZjplN6eFMm W609OWTOELyq5Aykkyaegvva42N70RutfXDOaHgCMBXqIpDHANsSfMPX/6RT67GMntjB cHHgybbR6NnpP5fqp3JZRMASYJcNnh5owtUYRBsLS2Mth/lCM1zp0y23f/HDr7dMPPIn VBbox4n7QzA069IFZzfRMpAs7/v8+CNHeH3d+f865lveKSaX5kfdsLa+JpFFz3MdnPhp 1XKzTIX83u52tIzCyFBnm5Y+nmDPbRdOmXhzWPonulEmzFPfX7v7nn4F51LKQKGL8wH4 rBvA== X-Gm-Message-State: AOJu0YzJOSeWM0Neack/37ZQC+zLb03kAVL/bDXQiA+ZTc+nWW6XBTyO 3MlclIF1RZ6oo5BUlh6rOhs= X-Received: by 2002:a17:902:facf:b0:1c5:d8a3:8783 with SMTP id ld15-20020a170902facf00b001c5d8a38783mr11972847plb.11.1698094018130; Mon, 23 Oct 2023 13:46:58 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:14f9:170e:9304:1c4e? ([2620:15c:211:201:14f9:170e:9304:1c4e]) by smtp.gmail.com with ESMTPSA id 18-20020a170902c21200b001c5f7e06256sm6322466pll.152.2023.10.23.13.46.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 13:46:57 -0700 (PDT) Message-ID: Date: Mon, 23 Oct 2023 13:46:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v2 8/8] blk-mq-tag: allow shared queue/hctx to get more driver tags Content-Language: en-US To: Yu Kuai , hch@lst.de, kbusch@kernel.org, ming.lei@redhat.com, axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com References: <20231021154806.4019417-1-yukuai1@huaweicloud.com> <20231021154806.4019417-9-yukuai1@huaweicloud.com> From: Bart Van Assche In-Reply-To: <20231021154806.4019417-9-yukuai1@huaweicloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 13:47:16 -0700 (PDT) On 10/21/23 08:48, Yu Kuai wrote: > + if (!busy) { > + ctl->timer_running = false; > + } else { > + ctl->timer.expires = jiffies + HZ; > + add_timer(&ctl->timer); > + } > + spin_unlock_irq(&tags->lock); [ ... ] > +inc_busy: > + atomic_inc(&info->busy_count); > + if (!tags->ctl.timer_running && > + try_cmpxchg_relaxed(&tags->ctl.timer_running, &timer_running, true)) { > + tags->ctl.timer.expires = jiffies + HZ; > + add_timer(&tags->ctl.timer); > + } > } So the choice has been made to let the timer expire after one second? I think the choice of the timer value is important enough to mention it in the patch description. Thanks, Bart.