Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp105942ybm; Tue, 21 May 2019 23:33:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz06mG6T1oCvdAH81WIIQn99ssyQcfB5RnFbNaNzi19bfs0QjU8eBpubuKr/S2zmgmVfN2t X-Received: by 2002:a63:d045:: with SMTP id s5mr24512971pgi.199.1558506786459; Tue, 21 May 2019 23:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558506786; cv=none; d=google.com; s=arc-20160816; b=MrDlosMEslgxBdQRy8di5453BdN17UW4LSoPY7yZN+J8NYjiVG1zYW88z0TUrZ9ILy BoDGMGIxzVWaDIIPlbxH2AANiITtBrdNxev9zxV4w0X0CtXo0uoe048rWUcf3J7p6++O 1Ogwb6UMGF8kLGAdkpEgU+BjfbZTUyvPWSPr0cs/7Aw/7kOBJvtoN2aCAqsXLORbntoo L7gl1mg01wdzx3rs94W0hmbOu+HOWl56/zGwWUVaLxv5cn/bh4flvl2kc/LOFtbmjwQN E70gOmFMxjTNxxZX1NgINF3kPBPN22RBLjyFsSFdOuZrXTTooUiqQUSY9bs/4RVsDnwX 4PKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=HsOrSSPU5BV9Q3gQc0wMFK8uVEORXt1Yr0TT9XOkgG4=; b=VkwifcYee/ZwkVtEQXq1atdR6AbdtSyH1t/mvKezvN0NH8PjWfzSfBYyq4TP3Yqzov GeaZX4HCZwR8kpT9Wk/QMGM2V2a8Dk3ps12jZ3fjgMwCpeeyudzig4nOFvgiHUmRGARd Zlm/+Axp329wWjogppgc1jwrio451cQawiBFG+cR+eBMZH6tcLhpICx/euw57Y57IzN6 DbbYL/cTEWb+TR4hUyK/lbpEnFmFmiBXlAYl55eyqXIw0Z2Tl/KLI5PMLvFJgWsovO1J G4h112sAGjLGTdJsWHclApdYig7oUYwk/QgkAPjP5E4yVkYyBA+sf6pfMrMMKvwU+7b1 9YYw== 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 w12si24613281plz.280.2019.05.21.23.32.50; Tue, 21 May 2019 23:33:06 -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 S1727464AbfEVGbq (ORCPT + 99 others); Wed, 22 May 2019 02:31:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:43612 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725796AbfEVGbq (ORCPT ); Wed, 22 May 2019 02:31:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B08E1B01F; Wed, 22 May 2019 06:31:44 +0000 (UTC) Message-ID: <1558506702.12672.28.camel@suse.com> Subject: Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation From: Oliver Neukum To: Alan Stern Cc: Jaewon Kim , Christoph Hellwig , linux-mm@kvack.org, gregkh@linuxfoundation.org, Jaewon Kim , m.szyprowski@samsung.com, ytk.lee@samsung.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Wed, 22 May 2019 08:31:42 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Regards Oliver