Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 1 Oct 2002 07:19:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 1 Oct 2002 07:19:53 -0400 Received: from bart.one-2-one.net ([217.115.142.76]:28678 "EHLO bart.webpack.hosteurope.de") by vger.kernel.org with ESMTP id ; Tue, 1 Oct 2002 07:19:52 -0400 Date: Tue, 1 Oct 2002 13:28:58 +0200 (CEST) From: Martin Diehl To: David McIlwraith cc: Martin Diehl , linux-kernel@vger.kernel.org Subject: Re: calling context when writing to tty_driver In-Reply-To: <08e001c2693b$8e64e8c0$41368490@archaic> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 736 Lines: 18 On Tue, 1 Oct 2002, David McIlwraith wrote: > Semaphores may sleep - therefore, they cannot be used from a 'non-sleep' > context. Yes, sure. Sorry if I wasn't clear enough - the point is whether those tty_driver write/write_room() calls are allowed to sleep or not. If yes, the usbserial implementation is right and it is impossible to do further writing directly from write_wakeup() callback (which would be really bad IMHO) - if not, usbserial needs to avoid the down() somehow. Martin - 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/