Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932078AbWAOPpg (ORCPT ); Sun, 15 Jan 2006 10:45:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932082AbWAOPpg (ORCPT ); Sun, 15 Jan 2006 10:45:36 -0500 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:13514 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S932078AbWAOPpf (ORCPT ); Sun, 15 Jan 2006 10:45:35 -0500 Subject: Re: [linux-usb-devel] Re: [2.6 patch] remove unused tmp_buf_sem's From: Alan Cox To: Greg KH Cc: Adrian Bunk , Jes Sorensen , torvalds@osdl.org, akpm@osdl.org, tony.luck@intel.com, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net, R.E.Wolff@BitWizard.nl, paulus@samba.org, linuxppc-dev@ozlabs.org In-Reply-To: <20060114034903.GA23074@suse.de> References: <17348.61824.49889.569928@jaguar.mkp.net> <20060114020816.GW29663@stusta.de> <20060114034903.GA23074@suse.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 15 Jan 2006 15:46:16 +0000 Message-Id: <1137339976.2350.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 817 Lines: 23 On Gwe, 2006-01-13 at 19:49 -0800, Greg KH wrote: > On Sat, Jan 14, 2006 at 03:08:16AM +0100, Adrian Bunk wrote: > > <-- snip --> > > > > > > tmp_buf_sem sems to be a common name for something completely unused... That would be correct. The old tty driver layer used to call ->write from both kernel and user contexts according to a flag. Drivers then all ended up with the same code copying it into a tmp buffer and using a locking semaphore. Linus took out that code and arranged that ->write always got a kernel buffer so the remainders should indeed go. Alan - 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/