Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F8BDC74A23 for ; Wed, 10 Jul 2019 14:25:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45AE82086D for ; Wed, 10 Jul 2019 14:25:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="POuovYGn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727505AbfGJOZl (ORCPT ); Wed, 10 Jul 2019 10:25:41 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:36749 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727297AbfGJOZl (ORCPT ); Wed, 10 Jul 2019 10:25:41 -0400 Received: by mail-io1-f68.google.com with SMTP id o9so5145613iom.3 for ; Wed, 10 Jul 2019 07:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Qni2yxbyN2x8hrbPuKtPxG5Ju3KZcomAfwDNiGzJBTY=; b=POuovYGn8iIzmvdNmDFSCKiEEL9gvltY1bZTxc5LZqMeCe3FO+oWOK7vULo4bEWWtz C7BAeM27iNEbef3pB17U+ThhFkd82zkxxjpfYhClkRp3pskj/WpvOpa+49rBnhCDqiw7 XAj2psq8ANz4KUB/avVQtaXVkN+D9p1WwlbaqLcXEpasSLYmErjr3w+SuSSO2rXcnaDG FasVteuE43l5ty5TuKrtoX8quWklQ7+OwzdQNYh/afhtLotTLz/j8LOZ5QrgpIlt9mrn FWFm7Z5+oytJ9B/klfdyrEfnLk1+pu3hqV8hyAwPZKqEsDcExdpOu3oFSbuGxeSR+a64 ZaEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Qni2yxbyN2x8hrbPuKtPxG5Ju3KZcomAfwDNiGzJBTY=; b=slxGliAMcLo9Qw1pdkDjvlQto9HfqS4rFXQ8hzZYRMIQWBkhQxjKdo9cznWImeAN1B 71OS9YaXUpj8KC43zP5eztslMUGPrlO/Jcy+dVALlD7hPhqLrndROKnm1IzZmJnHLOPa kfiZc7sUjEsa/ftz5nwPgspSecwVyPCCxxSDl3ocy1L7QDBt4jv41+6oZH91H5U0jSTI qlLV8G1+TzCcrANji8saLx7fUGn32hB5lJuc9u0a/ymbxC4fwCv8LU5Zory+C0zUXBzy BrZe6g8or/qau4O5chgig5e6eBA4XP1i8hPZ+chIjjD8oxCgt0pTb9UHzEbsSClhqFgY YcLw== X-Gm-Message-State: APjAAAUwuFMfepeJqT0ecN//tX2/nXNtkXXrPXiRV15lc1JBbsCMootV v6PJClDwaiEBDot/z7Vd7393DLIonez91A== X-Google-Smtp-Source: APXvYqw8azb5NkZFLQ7cgLeUpf7dlu/q57qe6BQ3O8GmnOoy9pbpfQ6vQ4a+RiM2g5H49aRsjZVEBw== X-Received: by 2002:a5d:9448:: with SMTP id x8mr34105785ior.102.1562768740719; Wed, 10 Jul 2019 07:25:40 -0700 (PDT) Received: from [192.168.1.158] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id s24sm1944909ioc.58.2019.07.10.07.25.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 07:25:40 -0700 (PDT) Subject: Re: [PATCH] blk-throttle: fix zero wait time for iops throttled group To: Konstantin Khlebnikov , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Liu Bo , stable@vger.kernel.org References: <156259979778.2486.6296077059654653057.stgit@buzz> <30caacb5-4d45-016b-a97d-db8b37010218@kernel.dk> From: Jens Axboe Message-ID: <5087ebc3-96e9-44a4-a914-eb99f3c33054@kernel.dk> Date: Wed, 10 Jul 2019 08:25:38 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 7/10/19 8:24 AM, Konstantin Khlebnikov wrote: > On 10.07.2019 17:00, Jens Axboe wrote: >> On 7/8/19 9:29 AM, Konstantin Khlebnikov wrote: >>> After commit 991f61fe7e1d ("Blk-throttle: reduce tail io latency when iops >>> limit is enforced") wait time could be zero even if group is throttled and >>> cannot issue requests right now. As a result throtl_select_dispatch() turns >>> into busy-loop under irq-safe queue spinlock. >>> >>> Fix is simple: always round up target time to the next throttle slice. >> >> Applied, thanks. In the future, please break lines at 72 chars in >> commit messages, I fixed it up. >> > > Ok, but Documentation/process/submitting-patches.rst and > scripts/checkpatch.pl recommends 75 chars per line. Huh, oh well. Not a big deal for me, line breaking is easily automated. -- Jens Axboe