From patchwork Fri Mar 25 08:47:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Ogness X-Patchwork-Id: 661331 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 p2P99kw9005969 for ; Fri, 25 Mar 2011 09:11:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753637Ab1CYJLx (ORCPT ); Fri, 25 Mar 2011 05:11:53 -0400 Received: from www.linutronix.de ([62.245.132.108]:33331 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752599Ab1CYJLw (ORCPT ); Fri, 25 Mar 2011 05:11:52 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 25 Mar 2011 09:11:54 +0000 (UTC) X-Greylist: delayed 1449 seconds by postgrey-1.27 at vger.kernel.org; Fri, 25 Mar 2011 05:11:52 EDT Received: from localhost ([127.0.0.1] helo=vostro.fn.ogness.net) by Galois.linutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Q32gG-0001xc-Bw; Fri, 25 Mar 2011 09:47:40 +0100 From: John Ogness To: Chris Ball Cc: Jens Axboe Cc: Andrew Morton Cc: Christoph Hellwig Cc: Adrian Hunter Cc: linux-mmc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/1] mmc: remove redundant irq disabling Date: Fri, 25 Mar 2011 09:47:37 +0100 Message-ID: <87zkoj7fiu.fsf@vostro.fn.ogness.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 2ae7275..c07322c 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -343,18 +343,14 @@ unsigned int mmc_queue_map_sg(struct mmc_queue *mq) */ void mmc_queue_bounce_pre(struct mmc_queue *mq) { - unsigned long flags; - if (!mq->bounce_buf) return; if (rq_data_dir(mq->req) != WRITE) return; - local_irq_save(flags); sg_copy_to_buffer(mq->bounce_sg, mq->bounce_sg_len, mq->bounce_buf, mq->sg[0].length); - local_irq_restore(flags); } /* @@ -363,17 +359,13 @@ void mmc_queue_bounce_pre(struct mmc_queue *mq) */ void mmc_queue_bounce_post(struct mmc_queue *mq) { - unsigned long flags; - if (!mq->bounce_buf) return; if (rq_data_dir(mq->req) != READ) return; - local_irq_save(flags); sg_copy_from_buffer(mq->bounce_sg, mq->bounce_sg_len, mq->bounce_buf, mq->sg[0].length); - local_irq_restore(flags); }