From patchwork Sun Jun 20 11:24:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 107044 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5KBPEbY006291 for ; Sun, 20 Jun 2010 11:25:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085Ab0FTLZB (ORCPT ); Sun, 20 Jun 2010 07:25:01 -0400 Received: from mgw1.diku.dk ([130.225.96.91]:57177 "EHLO mgw1.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066Ab0FTLZA (ORCPT ); Sun, 20 Jun 2010 07:25:00 -0400 Received: from localhost (localhost [127.0.0.1]) by mgw1.diku.dk (Postfix) with ESMTP id AEC6D52C406; Sun, 20 Jun 2010 13:24:59 +0200 (CEST) Received: from mgw1.diku.dk ([127.0.0.1]) by localhost (mgw1.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5plStvnZe0Sk; Sun, 20 Jun 2010 13:24:54 +0200 (CEST) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw1.diku.dk (Postfix) with ESMTP id 7135952C3C3; Sun, 20 Jun 2010 13:24:54 +0200 (CEST) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id 9DA446DF845; Sun, 20 Jun 2010 13:16:55 +0200 (CEST) Received: by ask.diku.dk (Postfix, from userid 3767) id 553C3200BF; Sun, 20 Jun 2010 13:24:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 4D527200BD; Sun, 20 Jun 2010 13:24:54 +0200 (CEST) Date: Sun, 20 Jun 2010 13:24:54 +0200 (CEST) From: Julia Lawall To: Paul Mundt , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 2/2] arch/sh/mm: Eliminate a double lock Message-ID: MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 20 Jun 2010 11:25:14 +0000 (UTC) diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 18623ba..6379091 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c @@ -770,7 +770,7 @@ static void __init pmb_resize(void) spin_unlock_irqrestore(&pmbe->lock, flags); } - read_lock(&pmb_rwlock); + read_unlock(&pmb_rwlock); } #endif