From patchwork Thu May 11 12:38:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 99638 Delivered-To: patches@linaro.org Received: by 10.140.96.100 with SMTP id j91csp708967qge; Thu, 11 May 2017 05:39:06 -0700 (PDT) X-Received: by 10.223.139.146 with SMTP id o18mr84134wra.146.1494506346711; Thu, 11 May 2017 05:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494506346; cv=none; d=google.com; s=arc-20160816; b=MeAA5QZLDRRGi029A95CcgcScC9SwQdh+wTJa+fvpDwsKTiPnCoTtxHAzRlCiLf8os rQ5EBdnUiZtAs2RAMAYhkgbNQoEkpG9NsOXU1Vq5iotJz300K9gqOwYvds1yhMvMCaRx ZZegldmwh8kQIz1wEjKMstCiRMW8QblTrc/oiqEF2w8Tnw86kfA8AUxYhuV//1gYytcp ZnsK916EUNkYcczZkXpNstJBROQ6dTO2oMcKANMtgw5iz6oDzKbLdLgTdSY1CPsRc23A lnUBqMBrse8m8ZBGlx7pFsXWUZr4emZkBFOKfpMZiY0D7+ORtqvGadXoY86LZKyBvp9S 1JLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=o0yqE+WIpp4DcVhx3EcVErRWtGJ5B53pazDmpHhD704=; b=nwlfObSnrE6iBCO+86YMe4d/E34U/4bcwRaIhCzwqPdj2LfxVObLDgaa1hbB6KuIO+ EF+ZH8636lEU2Fl2L7dy1hddNA/VK+Bn0TXpoqdeBl7D8MB7syylSNMiUMFLXUORnm4I TWe6aO/08u1ekJVI9+5f7S9LJg+p0zju0qloiOMEoupHSqUAXMAfo8v2FOOTiA7gUHAD aB9rZ3G0ItoD14dHpV71mt7f+3vrg+c6+vEGBkjJE4SuxtoUo29CA6tFjbogffRllyxo VVis2NClewO19Bl+/4DDzr9Mg4OPGrUO3f8Eu7JnG+Oy3ppG7nGim1esGkoKOEmN6BUh egYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::236 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com. [2a00:1450:400c:c0c::236]) by mx.google.com with ESMTPS id r6si7613322wmr.155.2017.05.11.05.39.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 05:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::236 as permitted sender) client-ip=2a00:1450:400c:c0c::236; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::236 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wr0-x236.google.com with SMTP id l9so19526820wre.1 for ; Thu, 11 May 2017 05:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=o0yqE+WIpp4DcVhx3EcVErRWtGJ5B53pazDmpHhD704=; b=HBvyvyuIzCNzOSsxN5RY+v92jyoR8KgoSgdhvlrb/Tl3h8YJfqxoHid4A/KbC5lK/n ulOUZqOBI6p8YEX3FnHgHqs3XYJ/W3jgddLVGi7frY3GI/JWdT0yXoG+IinAIlj0JY0g zkjFpBWLmW5ChCWGFDR8l+t8BykAf5Tp+J5Lk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o0yqE+WIpp4DcVhx3EcVErRWtGJ5B53pazDmpHhD704=; b=rTTzyt3fFEYd7zBw+tIEzPiePRpqkQRwv5o7UIuLPBE8IuWyqc8RnkuzgNK+jeRa1P 5StIvpcdYG7dNaGhqPwcQjkPmcY4IG4l8wQnXizjs7J4Yx4bjYWZ/5th+5EKPKJBl8BI ZNzqAmDOgeI6z6hlqgEFj+uzIKoxBUyIqmbMi+BbEH/Uos8a4SyXxLJallCY6xLz0JLs Awf9Y6nWAo/3WteNT2cuKjUo8GIs0OTYR8QotHyHEIxeE5DdtxbZKEEMY670SUC6m6Pv hpl9ROn2VXZMEIZytj2B9M3PFXMTdTtNZhWZXvVi589z1kEUBrs9nj6pC3PZ6bo4IO0S xt7w== X-Gm-Message-State: AODbwcAm4QDtXY1DyUPY26JZi1ed5kso638jhpda6XM3ZaODucU3/R1v br4dTbYA7V7eA+Yje7J9lbpS X-Received: by 10.46.83.11 with SMTP id h11mr34635ljb.17.1494506346211; Thu, 11 May 2017 05:39:06 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-155-4-221-67.na.cust.bahnhof.se. [155.4.221.67]) by smtp.gmail.com with ESMTPSA id h13sm13935ljh.5.2017.05.11.05.39.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 May 2017 05:39:05 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jens Axboe , Paolo Valente , linux-block@vger.kernel.org, Linus Walleij , Mark Brown , Adrian Hunter Subject: [RFC PATCH 0/3] mmc: core: Prepare mmc host locking for blk-mq Date: Thu, 11 May 2017 14:38:59 +0200 Message-Id: <1494506343-28572-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 The current APIs, mmc_claim|release_host() doesn't play well when the mmc block device driver tries to convert to blk-mq. In principle we need a re-claiming possibility of the host from the mmc block device driver, and to know when to release the host, need to keep track of a reference count instead. This series, so far untested, implements the idea from above. Sent as an RFC just to get peoples opinion of whether this is an approach that could work. Ulf Hansson (3): mmc: sdio: Don't use abort-able claim host method from SDIO IRQ thread mmc: core: Remove redundant abort-able claim host API mmc: core: Allow mmc block device to re-claim the host drivers/mmc/core/core.c | 33 ++++++++++++++------------------- drivers/mmc/core/core.h | 10 ++-------- drivers/mmc/core/sdio_irq.c | 10 ++++++---- include/linux/mmc/host.h | 2 +- 4 files changed, 23 insertions(+), 32 deletions(-) -- 2.7.4