From patchwork Sat Feb 12 00:25:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Shmidt X-Patchwork-Id: 551121 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1C0PlWa005877 for ; Sat, 12 Feb 2011 00:25:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751197Ab1BLAZp (ORCPT ); Fri, 11 Feb 2011 19:25:45 -0500 Received: from lo.gmane.org ([80.91.229.12]:37401 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750837Ab1BLAZp (ORCPT ); Fri, 11 Feb 2011 19:25:45 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Po3J1-0004HZ-Rh for linux-mmc@vger.kernel.org; Sat, 12 Feb 2011 01:25:43 +0100 Received: from 216-239-45-4.google.com ([216.239.45.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 01:25:43 +0100 Received: from dimitrysh by 216-239-45-4.google.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 01:25:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: linux-mmc@vger.kernel.org From: Dmitry Shmidt Subject: [PATCH] mmc: core: Allow sdio operations in other thread during =?utf-8?b?c2Rpb19hZGRfZnVuYygp?= Date: Sat, 12 Feb 2011 00:25:30 +0000 (UTC) Lines: 36 Message-ID: Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 216.239.45.4 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10) Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 12 Feb 2011 00:26:02 +0000 (UTC) diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index dec4290..d4e6e6ef 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -834,7 +834,6 @@ int mmc_attach_sdio(struct mmc_host *host) */ mmc_release_host(host); err = mmc_add_card(host->card); - mmc_claim_host(host); if (err) goto remove_added; @@ -846,13 +845,12 @@ int mmc_attach_sdio(struct mmc_host *host) if (err) goto remove_added; } - + mmc_claim_host(host); return 0; remove_added: /* Remove without lock if the device has been added. */ - mmc_release_host(host); mmc_sdio_remove(host); mmc_claim_host(host); remove: