Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp888201ybd; Wed, 26 Jun 2019 07:39:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkb6cJX99kd+1DWW/xaQGg2+rtzAuViNgp/ENaij7VEd1r/7V51TQ0p6RB9aKpbUZi/OSa X-Received: by 2002:a63:b1d:: with SMTP id 29mr3296502pgl.103.1561559968112; Wed, 26 Jun 2019 07:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561559968; cv=none; d=google.com; s=arc-20160816; b=XentHFSUQNZLXQBnJfSUupK+nAipi72Tr8oGWiWc+cL8h7J4vcJ6/yV1y+uQlzSfdm b/6JKt98Z5OWdXV41z7XbkZ9/S6BiAnUtsi1bSF1uAY9Z/9KQPCNThPXBH4YF5i+46hM RZgGmogxbJjBbeV1YtQiSyYoEy10oTUKLKeXLz3pmZj6JzGkmDr48IVB8sVFoAu8iVXp vzej/rwOoKsD6i0NVrXSC/SXfCO/nsJm5pHzg+h096ir4inRC4OJYEzy4OAjHt09w8+j ZIqXnbniQ2Bz0TGRJlDMK/md6Hx4itXvcbH3UybTs6bt3JZABHFQLbRPeqYN//hGs4zO NBHw== 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=dToyFuxMliPpV67uE9hfW7cDt456G0NtTFBarUtRQbg=; b=s/qGN2GIpntoT17Qf9UjYQDh0asn1HR3sGdizBTZfQAx6UQLxawnNziBTMe+AdoWNc 4YG6HCbnWA/HPllEt4Z0Uuao5teoWbxfZmrGDiTg6uCAP5pjBV04z5ZAYj0mwxrUB9cf 2kb7u/TKLBjT1XhcSMhW3QAz1zpiu7+sftznmWeP0eLH2MpV4JBolktPU5JVwi4BHDsJ OHiFAbCGzvfEST45usNrdn34brxVFMbUGuVLMeTpZWPYHCUlpmvWi+nsZ4jtOupSE2GF /0Vxm2mzcqvlGePLI71U/jaRe0RU4wfve8B3ouMwyhlatmDRWkvDWaMbfn3ChQg4svv4 PApg== 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 a17si2107248pjq.101.2019.06.26.07.39.11; Wed, 26 Jun 2019 07:39: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 S1728146AbfFZOi6 (ORCPT + 99 others); Wed, 26 Jun 2019 10:38:58 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:36422 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728048AbfFZOi6 (ORCPT ); Wed, 26 Jun 2019 10:38:58 -0400 Received: (qmail 2512 invoked by uid 2102); 26 Jun 2019 10:38:57 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2019 10:38:57 -0400 Date: Wed, 26 Jun 2019 10:38:57 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Oliver Neukum cc: Tejun Heo , Kernel development list , USB list Subject: Re: [RFC] deadlock with flush_work() in UAS In-Reply-To: <1561536635.23604.8.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, 26 Jun 2019, Oliver Neukum wrote: > Am Montag, den 24.06.2019, 10:22 -0400 schrieb Alan Stern: > > But that pattern makes no sense; a driver would never use it. The > > driver would just do the reset itself. > > Correct. But UAS and storage themselves still need to use > WQ_MEM_RECLAIM for their workqueues, don't they? Perhaps so for uas. usb-storage uses a work queue only for scanning targets, which doesn't interfere with the block I/O pathway. Alan Stern