Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752052AbXBVXzA (ORCPT ); Thu, 22 Feb 2007 18:55:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752053AbXBVXzA (ORCPT ); Thu, 22 Feb 2007 18:55:00 -0500 Received: from mx1.redhat.com ([66.187.233.31]:42160 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbXBVXy7 (ORCPT ); Thu, 22 Feb 2007 18:54:59 -0500 Date: Thu, 22 Feb 2007 15:53:18 -0800 From: Pete Zaitcev To: Duncan Sands Cc: Simon Arlott <254ad70138dc1cdf241hjzcr0007jhhw@thunder.lp0.eu>, Linux Kernel Mailing List , zaitcev@redhat.com, linux-usb-devel@lists.sourceforge.net Subject: Re: [PATCH 2/2] usbatm: Detect usb device shutdown and ignore failed urbs. Message-Id: <20070222155318.19b423a9.zaitcev@redhat.com> In-Reply-To: <200702221143.38809.duncan.sands@math.u-psud.fr> References: <45DCBC26.1050308@simon.arlott.org.uk> <200702221143.38809.duncan.sands@math.u-psud.fr> Organization: Red Hat, Inc. X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.9; i386-redhat-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: 943 Lines: 24 On Thu, 22 Feb 2007 11:43:38 +0100, Duncan Sands wrote: > > + /* the module/device has probably been removed */ > > + if (urb->status == -ESHUTDOWN) > > + return; > > + > > if (printk_ratelimit()) > > atm_warn(channel->usbatm, "%s: urb 0x%p failed (%d)!\n", > > __func__, urb, urb->status); > > I would rather just suppress the warning in this case, and still do the delayed > schedule of the tasklet, in case this error was spurious and we're not really > about to be disconnected. I disagree. If ESHUTDOWN is received, the endpoint is definitely gone. I can see why you might want to retry EPROTO, ELISEQ, etc. but this case is different. -- Pete - 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/