Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750791AbXBVKwL (ORCPT ); Thu, 22 Feb 2007 05:52:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750789AbXBVKwK (ORCPT ); Thu, 22 Feb 2007 05:52:10 -0500 Received: from matups.math.u-psud.fr ([129.175.50.4]:47327 "EHLO matups.math.u-psud.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbXBVKwJ (ORCPT ); Thu, 22 Feb 2007 05:52:09 -0500 From: Duncan Sands To: Simon Arlott <254ad70138dc1cdf241hjzcr0007jhhw@thunder.lp0.eu> Subject: Re: [PATCH 2/2] usbatm: Detect usb device shutdown and ignore failed urbs. Date: Thu, 22 Feb 2007 11:43:38 +0100 User-Agent: KMail/1.9.6 Cc: Linux Kernel Mailing List References: <45DCBC26.1050308@simon.arlott.org.uk> In-Reply-To: <45DCBC26.1050308@simon.arlott.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702221143.38809.duncan.sands@math.u-psud.fr> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 22 > + /* 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. Ciao, Duncan. PS: I plan to work on the drivers this weekend. - 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/