Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp565361ybm; Wed, 22 May 2019 07:57:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXwjB8PeP8jHwnh21jyJU9gnbrrdz/v8RBbA1I0M0jr7EFiyEFHP89vWyX3UoglSdvmJgB X-Received: by 2002:a63:ee0b:: with SMTP id e11mr38156646pgi.453.1558537048066; Wed, 22 May 2019 07:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558537048; cv=none; d=google.com; s=arc-20160816; b=H74zYROwxLEysL+w2BH9rHNHdegdHdO7YzIFkQaf9KNBVENvChckxjMmmsc45FdJVn 06f7I5s0NwTJ1CK4kQz5K02LFBPBloF8QMDaN0ricuG5jLBTBY7YamVU57S57mPsJFl4 xUHDbwHHUl/vi7WJH1u2NglNi/y6AkQ0yl5IRoQPBNfQE/NtrQ2XiuvmTODHrHptt2+y puUTirVQyL/d8nunxHOZsv4dEeQqHaIgxIlpPv2nawWHBaSKFwsEtkA9sN1iV7M+oxvv i/5e6dXgK9OzT4oWmVlD6/GOvpzIDAcDKQXbOu34otgEunyYwOkvg5WED6zEmemmM2V8 Xk5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=6FflCkVaEbFMXuwYX/y1S7Y+v2RMO74l9U1WQIUFgZY=; b=Q63VWsyvlzycs2BGxTrzNuELRsQ/e/+38KfCeeGH7okQNRJdu4z03NMAWEELRr5u9q lxHEql3VuMMGRSzadpdXD/mh3ekxId02QXqGKWtuwH2l7D/TlcwNCeQuMnv64O42188+ NVfNIv3nz4/N5ho1Be7EmnF6LzutK5gjGUDZhP3ZNoFq1FvVJuYnIrmwItoJDjcnDKxU StEiep8ni0h1C/K2aVH/6HtuQR0lpYSOlKa9B9587QhCSU0p4XhxBgl/0eD94qLnzHsR cmCcrGO9cChboQ6q0k6xq/uJALvE/Y4tr23kR1yLivzZ+uspJ/JvhwRfDvg3NU8rL7v+ +eHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t63si25454970pgd.452.2019.05.22.07.57.11; Wed, 22 May 2019 07:57:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729577AbfEVO4C (ORCPT + 99 others); Wed, 22 May 2019 10:56:02 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:55530 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728450AbfEVO4C (ORCPT ); Wed, 22 May 2019 10:56:02 -0400 Received: (qmail 2691 invoked by uid 2102); 22 May 2019 10:56:01 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 22 May 2019 10:56:01 -0400 Date: Wed, 22 May 2019 10:56:01 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Oliver Neukum cc: Jaewon Kim , Christoph Hellwig , , , Jaewon Kim , , , , Subject: Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation In-Reply-To: <1558506702.12672.28.camel@suse.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 May 2019, Oliver Neukum wrote: > On Di, 2019-05-21 at 10:00 -0400, Alan Stern wrote: > > > > Changing configurations amounts to much the same as disconnecting, > > because both operations destroy all the existing interfaces. > > > > Disconnect can arise in two different ways. > > > > Physical hot-unplug: All I/O operations will fail. > > > > Rmmod or unbind: I/O operations will succeed. > > > > The second case is probably okay. The first we can do nothing about. > > However, in either case we do need to make sure that memory allocations > > do not require any writebacks. This suggests that we need to call > > memalloc_noio_save() from within usb_unbind_interface(). > > I agree with the problem, but I fail to see why this issue would be > specific to USB. Shouldn't this be done in the device core layer? Only for drivers that are on the block-device writeback path. The device core doesn't know which drivers these are. Alan Stern