Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751587AbVKCD5t (ORCPT ); Wed, 2 Nov 2005 22:57:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751588AbVKCD5t (ORCPT ); Wed, 2 Nov 2005 22:57:49 -0500 Received: from smtp.osdl.org ([65.172.181.4]:2449 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751587AbVKCD5s (ORCPT ); Wed, 2 Nov 2005 22:57:48 -0500 Date: Thu, 3 Nov 2005 13:57:35 +1100 From: Andrew Morton To: Michael Krufky Cc: linux-kernel@vger.kernel.org, linux-dvb-maintainer@linuxtv.org, Manu Abraham Subject: Re: [PATCH 24/37] dvb: dst: protect the read/write commands with a mutex Message-Id: <20051103135735.6d860a73.akpm@osdl.org> In-Reply-To: <4367240C.8030204@m1k.net> References: <4367240C.8030204@m1k.net> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 403 Lines: 10 Michael Krufky wrote: > > + sema_init(&state->dst_mutex, 1); We normally use init_MUTEX(), so we don't have to remember that 1 == unlocked. - 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/