Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269509AbTHCTWk (ORCPT ); Sun, 3 Aug 2003 15:22:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269578AbTHCTWk (ORCPT ); Sun, 3 Aug 2003 15:22:40 -0400 Received: from [66.212.224.118] ([66.212.224.118]:24583 "EHLO hemi.commfireservices.com") by vger.kernel.org with ESMTP id S269509AbTHCTWj (ORCPT ); Sun, 3 Aug 2003 15:22:39 -0400 Date: Sun, 3 Aug 2003 15:10:56 -0400 (EDT) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Abraham van der Merwe Cc: Linux Kernel Discussions Subject: Re: sleeping in dev->tx_timeout? In-Reply-To: <20030803183707.GA13728@oasis.frogfoot.net> Message-ID: References: <20030803183707.GA13728@oasis.frogfoot.net> 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: 538 Lines: 17 On Sun, 3 Aug 2003, Abraham van der Merwe wrote: > Hi! > > Is it safe to sleep in tx_timeout (in the networking code), i.e. to call > schedule_timeout and friends from that routine? No it's called from softirq context and with the dev->xmit_lock held in places. -- function.linuxpower.ca - 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/