Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4970987ybi; Tue, 28 May 2019 05:38:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyH0uZv2GSvfc7h82MgEcmdontF3NkPI4/KsxRatAxhWaLESG/OMIySXLaFfR4D/739VuaW X-Received: by 2002:a63:2b92:: with SMTP id r140mr45454835pgr.363.1559047100149; Tue, 28 May 2019 05:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559047100; cv=none; d=google.com; s=arc-20160816; b=Auw+p6aZmPDmfSd7PeibZQjjD7sG94Zy58aZysCI9vZO4T+Mm96rPJZsKyyNj5LAK5 NjHcvYs0IlQ+zdtZwBunCxCSaBDvigoT8q3EbqAPOtGFwLeNyuqnYAjkUZ3xErBuqd1r 8DWJ5nBJJlbmfnfY+oazlzJ2lCi+e1EvcmIfi9wZ8ethgLqzGDi3bzgZomgIkFPn6yPK zuypIi2R3gmrAY3TZT5AcrmWqzg5rT6QKYMKXdTBVQ6q8gDuiWf2cxF8mEX1eMdYiCyk qCaSL/4G6TWEDoSz+pyOy3/AvWjrY/LjVkz4YNGauopGd6hJlyaRvn4Y+VLYAVwtiqG7 Qp/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id; bh=ndx0BALlOoYJJe1XXJ//WqMGeZ+sIARNuE3kDQQb8es=; b=TmKrPNwzRNHI/GXa6HvFrdg/EVUAE//DL6LZdAADZ+7a4gEbDB5uevKrNf+YkUurG3 oz2LoqSZrYo1x1g7iKXrKBRRKAFt6AB+Mzz8mmuEXHGvQyaFDTLVEGMInWnzA/t8Pc+U Vw2L4ElKMbUUWQNorHYvJKVEoswwr6U/3OkKY/D6OECK81XAS+xP3jx9lUFP8d7hdJVy hTdCMTa3W5oc5LgZRfmo4KzBKJC+Enws+kOkx6hsE6XUG+xMyZP9iyJOqBBPdwEya3RJ SAKXeJT4fO9/Jyp/LTOzX/tEVRZs3bJexUD5PxqRk55iC7p5E+AdbsZEymO+sKgzyr15 Dv+A== 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 q82si24768407pfc.12.2019.05.28.05.38.04; Tue, 28 May 2019 05:38:20 -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 S1727221AbfE1Mew (ORCPT + 99 others); Tue, 28 May 2019 08:34:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:36244 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726999AbfE1Mew (ORCPT ); Tue, 28 May 2019 08:34:52 -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 0881DAE86; Tue, 28 May 2019 12:34:50 +0000 (UTC) Message-ID: <1559046886.13873.2.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: Tue, 28 May 2019 14:34:46 +0200 In-Reply-To: References: Content-Type: multipart/mixed; boundary="=-I2kQBv2Gth4pqYzgYdi+" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-I2kQBv2Gth4pqYzgYdi+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Am Donnerstag, den 23.05.2019, 10:01 -0400 schrieb Alan Stern: > On Wed, 22 May 2019, Oliver Neukum wrote: > > > On Mi, 2019-05-22 at 10:56 -0400, Alan Stern wrote: > > > On Wed, 22 May 2019, Oliver Neukum wrote: > > > > > > > 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. > > > > Neither does USB know. It is very hard to predict or even tell which > > devices are block device drivers. I think we must assume that > > any device may be affected. > > All right. Would you like to submit a patch? Do you like this one? Regards Oliver --=-I2kQBv2Gth4pqYzgYdi+ Content-Disposition: attachment; filename="0001-base-force-NOIO-allocations-during-unplug.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-base-force-NOIO-allocations-during-unplug.patch"; charset="UTF-8" RnJvbSAwZGM5YzdkZmU5OTRmYzljMjhhNjNiYTI4M2U0NDQyYzIzN2Y2OTg5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBUdWUsIDI4IE1heSAyMDE5IDExOjQzOjAyICswMjAwClN1YmplY3Q6IFtQQVRDSF0gYmFzZTog Zm9yY2UgTk9JTyBhbGxvY2F0aW9ucyBkdXJpbmcgdW5wbHVnCgpUaGVyZSBpcyBvbmUgb3Zlcmxv b2tlZCBzaXR1YXRpb24gdW5kZXIgd2hpY2ggYSBkcml2ZXIKbXVzdCBub3QgZG8gSU8gdG8gYWxs b2NhdGUgbWVtb3J5LiBZb3UgY2Fubm90IGRvIHRoYXQKd2hpbGUgZGlzY29ubm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