Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2054631ybi; Mon, 1 Jul 2019 05:24:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWaDz0nvZ2L7GLjYfN5J/5nsHRwyVIQasXGM0ZMug/sga8uLLQLX956qSbfwdq1BuJvc3U X-Received: by 2002:a63:6ec6:: with SMTP id j189mr9057308pgc.168.1561983897460; Mon, 01 Jul 2019 05:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561983897; cv=none; d=google.com; s=arc-20160816; b=y0cEQO6xo4WXcaBoFPRW29bBR7YBFAnLP6uFHLcs94fvqk3tlc1mIs9EE/kYwHIf3Z J/6KAMy/wX0Ye4dD/84khBzHbOH85VoMPzgBQyVTTsxvCThMlMNdH8SIBYuXtmz/3uxW yEDXFbSzME37c9T74P6dHGJi6wrqejmL87LnrS8H6acnsLvn9Lz99YDRiiMQZO9D10Ac yFmppXn3T8forCGGpxiDjP4+BEOW/PBcMJ2izW7LzlVnnDS9aQlbx0nnLUbXAFPGOnFq 7YBMgeKl7Y7abF6tue48szW/LLpkNUBtRp+M7GHQ+n3e3OP1YynuaJAUE+72bX4F3enj RURg== 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=1eBw66E2FrtaExg6vsQrNuhPMsNmRz57GRfdh+XqEvg=; b=xvyUVwIvqFjh/BeI/F0A/zmDaMmWlhiXdrX8OIYmjk5sZAQRbEAzOZsQ3ZG14CRAA2 28Wps8zfB/U06jeDTgX0zqAcOaSn5zsmvDvsxCyJKpDqNZXZhsEJeUsCu+weKwUmPI1X zy7bTvUROWlG0yHVsSwDw/vUF2Pxq0jhi5uSnj45XV1qIPbs4CHO1BgJ0vt8794Lbede ThKUe6QWGGyoMNhK9Ay8z+uT3fPyDqYOzKvfUCDGaIcfKQ31I5qMEVkvxlmfSO99Ui8U DM7nYoQnvcbVHo4WKbLftT5pCRPRLzuEM6BJpUpDfPzmXug1he0SaozPjbxWIFYDuxK+ em3A== 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 h185si10214169pge.199.2019.07.01.05.24.41; Mon, 01 Jul 2019 05:24:57 -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 S1728297AbfGALQU (ORCPT + 99 others); Mon, 1 Jul 2019 07:16:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:50618 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728081AbfGALQT (ORCPT ); Mon, 1 Jul 2019 07:16:19 -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 80A00ACEF; Mon, 1 Jul 2019 11:16:18 +0000 (UTC) Message-ID: <1561978947.10014.12.camel@suse.com> Subject: Re: [RFC] deadlock with flush_work() in UAS From: Oliver Neukum To: Alan Stern Cc: Tejun Heo , Kernel development list , USB list Date: Mon, 01 Jul 2019 13:02:27 +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 Am Mittwoch, den 26.06.2019, 10:38 -0400 schrieb Alan Stern: > 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. Are you sure? What about hub_tt_work? As far as I can tell, hub_quiesce will flush it, hence it is used in error handling. Regards Oliver