Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756417Ab1BOWvW (ORCPT ); Tue, 15 Feb 2011 17:51:22 -0500 Received: from kroah.org ([198.145.64.141]:40234 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755622Ab1BOWvT (ORCPT ); Tue, 15 Feb 2011 17:51:19 -0500 Subject: Patch "kernel/user.c: add lock release annotation on free_user()" has been added to the 2.6.32-longterm tree To: namhyung@gmail.com, akpm@linux-foundation.org, a.p.zijlstra@chello.nl, dhaval.giani@gmail.com, efault@gmx.de, gregkh@suse.de, linux-kernel@vger.kernel.org, mingo@elte.hu, torvalds@linux-foundation.org Cc: , From: Date: Tue, 15 Feb 2011 14:51:10 -0800 In-Reply-To: <1297404421.7865.24.camel@marge.simson.net> Message-ID: <12978102701595@kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2464 Lines: 68 This is a note to let you know that I've just added the patch titled kernel/user.c: add lock release annotation on free_user() to the 2.6.32-longterm tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/longterm/longterm-queue-2.6.32.git;a=summary The filename of the patch is: kernel-user.c-add-lock-release-annotation-on-free_user.patch and it can be found in the queue-2.6.32 subdirectory. If you, or anyone else, feels it should not be added to the 2.6.32 longterm tree, please let know about it. >From efault@gmx.de Tue Feb 15 14:39:42 2011 From: Namhyung Kim From: Mike Galbraith Date: Fri, 11 Feb 2011 07:07:01 +0100 Subject: kernel/user.c: add lock release annotation on free_user() To: Dhaval Giani Cc: LKML , Peter Zijlstra , Ingo Molnar , Greg Kroah-Hartman Message-ID: <1297404421.7865.24.camel@marge.simson.net> From: Namhyung Kim commit 571428be550fbe37160596995e96ad398873fcbd upstream. free_user() releases uidhash_lock but was missing annotation. Add it. This removes following sparse warnings: include/linux/spinlock.h:339:9: warning: context imbalance in 'free_user' - unexpected unlock kernel/user.c:120:6: warning: context imbalance in 'free_uid' - wrong count at exit Signed-off-by: Namhyung Kim Cc: Ingo Molnar Cc: Dhaval Giani Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Mike Galbraith Signed-off-by: Greg Kroah-Hartman --- kernel/user.c | 1 + 1 file changed, 1 insertion(+) --- a/kernel/user.c +++ b/kernel/user.c @@ -91,6 +91,7 @@ static struct user_struct *uid_hash_find * upon function exit. */ static void free_user(struct user_struct *up, unsigned long flags) + __releases(&uidhash_lock) { uid_hash_remove(up); spin_unlock_irqrestore(&uidhash_lock, flags); Patches currently in longterm-queue-2.6.32 which might be from namhyung@gmail.com are -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/