Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4482pxt; Wed, 4 Aug 2021 04:37:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdNSptaRuU22QNNAjlqZtlWFAULlTs8N3OV4/B2skNz0lsGXheiACI8jFGYyQoPtT+Q/sP X-Received: by 2002:a6b:e504:: with SMTP id y4mr704869ioc.102.1628077031151; Wed, 04 Aug 2021 04:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628077031; cv=none; d=google.com; s=arc-20160816; b=RrS2N9QlED7kIPh0xuYQN3AAf+sMbXKaJ4uivIURX60yVf3j7UzvKf88UEB/PCejF5 EmMDO4r+EklB/aq+eTsPNteMvcKyh/KDDSldHnNNd6pX0Etmnte95nSQFZZna+4xb1vx WN7Cu506MFRutmnSvPi2TAoit5U9Nf49ACYluGJrJwO6DdhXHHWA+CdmOQfH/u6/W5is 5/z1EJ/WcX0vuzBAN0frhOvc5Nm1WY9TbAdUc9tc6gh7uGwhOk0vAjMeK3fRSMcZywla 4fb3VhAzWUz7JdArL3IpHjRaWe9DCTrfbRHZAm23EYmC7cBnbJWSvY2D8fq7AOxjJXrq FV6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=InP9peXlbtO4mCujwrny7kM0O4CUejd3WqIqrBu9ksc=; b=ERIobxVvwcei7ieiGRs2cVktEpaEYQCHWOT/xw2hV5HKnIyrPOMKBVSr1pwYFt7y3j QLm6wOtpz7HzHx23RGxwy/rduT3JmPUlqx0c6QS4wNwTRHdTAE5lYyZV+I8AFgYZUUYN vFBghdYqwlS5ofXHcGjsp2IKLEI2ye+2EuSc/PK2aQVKgyWvxOezdD0s3JxY4yiJtpmd 4D9xGj0iPw2C4k/MK5uSUqaPda+Q6nAoI31Xja6DAaDetZnATgDlruToLHh7CpDgplv9 /PE6ecbuNQBke7LyAm3ro/1K1Z6/6C6ZM12WJmEcA10zto/mNLHjVi1Zti5E9XaqiZab iI2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o68yKhc9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si1763999iox.55.2021.08.04.04.36.59; Wed, 04 Aug 2021 04:37:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=o68yKhc9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237752AbhHDLfo (ORCPT + 99 others); Wed, 4 Aug 2021 07:35:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237719AbhHDLfh (ORCPT ); Wed, 4 Aug 2021 07:35:37 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CBCBC06179A for ; Wed, 4 Aug 2021 04:35:25 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id a1so807603vsd.12 for ; Wed, 04 Aug 2021 04:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=InP9peXlbtO4mCujwrny7kM0O4CUejd3WqIqrBu9ksc=; b=o68yKhc9ieL+VmBlW63oQ8KmiqHu0FYv9FpbS6zYFsgRfcJQHcACeSJUOl4VAq9YOt YlSDDhs1zO5s9IPU1Fu9n5SZyw1yKJxmGljdQJIV+CJNfy6IcWx+azo2mN/rgB/B8CFI TpJufHSABZZjmLkERZAMy9Va8tjyxbbXpbzDibecxNtw8tmj5QCiNADDpGr1pXxJU0P8 2jSNLnPqvadEU9Bk1GJjk8sIZbxiozy9Ic9E4O3um6zvJ2d12wod0bj/Pw/8w2k2HcUn TJf1lVXF3s9gFF8CNH/Uc7uPq5FWPto4cKMvAFpL5M1res+bquhtTUp98b/exyb3ctH+ 6Cog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=InP9peXlbtO4mCujwrny7kM0O4CUejd3WqIqrBu9ksc=; b=UvSujMSMtj4NsOQXnBDc3KKQULW6XeIM7Hyo77RT/cjvmDTTGIFVZ811mmEvmEc2qT GJmiItrkNADER8p6XgwGCocaks/cTEi0LX0ZtKaUbHQNTWvCMpjzk6xM1ITEb2BaD+yW V6iWY24wWtWKF/4O0Fbcqcokv98x/c2ki7uTPvCQ/DGiR9AC0g53Kf3wC9ovn4zo0RRi pTEIzF9wmRt+ZPbc5EAUZ6iVcFTrqws5ByIcCDCHfMp5Nmg5zrehzLg/L+GwEcjq2LmY DJBSDYZ7fLcWiyaVQR0RNr9qgkFhvmmUjm33v91G2FPdQsCwVbd8eOgbIkGMMtnwHwiL NDUg== X-Gm-Message-State: AOAM5302W5E2a1x0OQ4f+taR2EywF6Un9CQ47YVofkLP3M/XPJNbId4j IfY28hOmM3eMF/FswEtpOnzVuSw39CGXburcynH6RA== X-Received: by 2002:a67:7c11:: with SMTP id x17mr5354731vsc.55.1628076924623; Wed, 04 Aug 2021 04:35:24 -0700 (PDT) MIME-Version: 1.0 References: <20210702134229.357717-1-ulf.hansson@linaro.org> In-Reply-To: <20210702134229.357717-1-ulf.hansson@linaro.org> From: Ulf Hansson Date: Wed, 4 Aug 2021 13:34:47 +0200 Message-ID: Subject: Re: [PATCH 0/3] mmc: core: Avoid hogging the CPU while polling for busy To: linux-mmc , Ulf Hansson Cc: Adrian Hunter , Linus Walleij , Wolfram Sang , Shawn Lin , Christian Lohle , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Jul 2021 at 15:42, Ulf Hansson wrote: > > Step by step, code that have been dealing sending CMD13 to poll the card for > busy, have been moved to use the common mmc_poll_for_busy() loop. This helps to > avoid hogging the CPU, for example, as it inserts a small delay in between each > polling attempt. Additionally, it avoids open coding. > > This series takes the next and final step, by moving the mmc block device layer > from its own busy polling loop, into using the common code. > > Please test and review! > > Kind regards > Uffe > > Ulf Hansson (3): > mmc: core: Avoid hogging the CPU while polling for busy in the I/O err > path > mmc: core: Avoid hogging the CPU while polling for busy for mmc ioctls > mmc: core: Avoid hogging the CPU while polling for busy after I/O > writes > > drivers/mmc/core/block.c | 74 +++++++++++++++++--------------------- > drivers/mmc/core/mmc_ops.c | 5 ++- > drivers/mmc/core/mmc_ops.h | 1 + > 3 files changed, 37 insertions(+), 43 deletions(-) > This series has been applied for next. If you encounter any regressions (performance related as well), please report them! Kind regards Uffe