Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752868AbZGZITm (ORCPT ); Sun, 26 Jul 2009 04:19:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752409AbZGZITk (ORCPT ); Sun, 26 Jul 2009 04:19:40 -0400 Received: from www.tglx.de ([62.245.132.106]:57919 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbZGZITe (ORCPT ); Sun, 26 Jul 2009 04:19:34 -0400 Message-Id: <20090726081554.946759738@linutronix.de> User-Agent: quilt/0.47-1 Date: Sun, 26 Jul 2009 08:18:10 -0000 From: Thomas Gleixner To: LKML Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Martin Schwidefsky Subject: [Patch RFC 13/37] s390: cio/crw: semaphore cleanup References: <20090726081459.455111897@linutronix.de> Content-Disposition: inline; filename=driver-s390-cio-crw-sema-cleanup.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 975 Lines: 29 The usage of this "mutex" is non obvious and probably a completion in some places. Make it a semaphore. Signed-off-by: Thomas Gleixner Cc: Martin Schwidefsky --- drivers/s390/cio/crw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6-tip/drivers/s390/cio/crw.c =================================================================== --- linux-2.6-tip.orig/drivers/s390/cio/crw.c +++ linux-2.6-tip/drivers/s390/cio/crw.c @@ -137,7 +137,7 @@ void crw_handle_channel_report(void) */ static int __init crw_init_semaphore(void) { - init_MUTEX_LOCKED(&crw_semaphore); + semaphore_init_locked(&crw_semaphore); return 0; } pure_initcall(crw_init_semaphore); -- 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/