Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3416632imw; Thu, 7 Jul 2022 01:07:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vXIFHNog3iBxVaxwgxGUiMtN2BQuqhZj0FdYoqrgYpvkqD8uziWgYW/ApBDeqmxx8bcU81 X-Received: by 2002:a17:907:2cc3:b0:722:e993:c420 with SMTP id hg3-20020a1709072cc300b00722e993c420mr42217389ejc.145.1657181256868; Thu, 07 Jul 2022 01:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657181256; cv=none; d=google.com; s=arc-20160816; b=aNx7lHaIofpwMEQOvvGl+saQDYmnIeiUXG4vmPhsSFfTR2v6xjpy7wlkDqvSe835aE 6h3xZu8XNA10IQ6gIA7lhOZ5WiAmkzA+LQAG/5KYCNsHXkzv/IzDpfHTv/qf4BJYjKJP RQcWYkGoq5WV0ovc6SZU94A2FnCrDWTLYTj58Nupt3XV7KKcmmJYjKQPv8nCpkusX415 F7M3Xk1m4s2csElEwMm3n6u1K0fm4nvpYLmQ4LArEcRjxph61wKyn/8K8ELqhe1wf5z+ vQRQjhTNS2jV72XVfmQK4k98If0m6aDvIk3GKXiHHCpfdNGj/uo9gdMlsqCxnY7QyaZ5 6k5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ScAIqnd/NOzoKn8g+P7m63QSKgepN3Gfo0LE/JZTL34=; b=YCSlDP2APWAHgR83BtdRvFSM/Sl9QYlz/om+XEWQgSbxyZowhNXVikTw2clo7mfZmU /kHEjpBJwObfS5xAbWeUFaz/DMDopuIk9OXYBUfRX26a7dTKJ80tMuOfBfYE9gAcYqjR 7tkgj/zC5yeV3zvc/oxYiJNH5nw9fJMk3nRFpOcmqvRiTJgZSJuvV4VZr9X9+UJKgW+Z GxrH4YA/t9Z4OzT9OhF6O9ojEi+Hxe+PZ/XOhCuITvcsVxBe1Ne3FzzQW3mdjUAhzafm nbndAD0qnu54ca1UkO8cAEsmlT34763Y8OiBBxuITUciTnzmzTMQJbOOEdhXnAj565lN kIwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xXCqNLAf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt12-20020a1709072d8c00b00722df7631c5si7341514ejc.749.2022.07.07.01.07.11; Thu, 07 Jul 2022 01:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xXCqNLAf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234874AbiGGIEf (ORCPT + 99 others); Thu, 7 Jul 2022 04:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232120AbiGGIEe (ORCPT ); Thu, 7 Jul 2022 04:04:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C20F25C5; Thu, 7 Jul 2022 01:04:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A02ADB81F50; Thu, 7 Jul 2022 08:04:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3100C341C8; Thu, 7 Jul 2022 08:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657181070; bh=i3ubyFnOD3zhjC1AIUILsyZXAyE/N1coKv+uqBVa8Z0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xXCqNLAfXYa38ck54PvLEFvRVCNtD/7EEsqBmJZU/dy5P8udEd3TfpR8pDo79XQKq UKxBKT4lfdaqth7MXIz5qMOQJV9ag0Tmm7vMq0yN64MK8GuLDSalGxiI9nrLFqRJCE UkSEYCLninFNnTT8zdP4zQQIx4738L7Bpwpt7mhk= Date: Thu, 7 Jul 2022 10:04:27 +0200 From: Greg KH To: Tetsuo Handa Cc: Oliver Neukum , "Rafael J. Wysocki" , Wedson Almeida Filho , Len Brown , Pavel Machek , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Dmitry Vyukov , Arjan van de Ven Subject: Re: [PATCH] char: misc: make misc_open() and misc_register() killable Message-ID: References: <617f64e3-74c8-f98b-3430-bd476867e483@I-love.SAKURA.ne.jp> <5665ccb2-b92b-9e1f-8bb5-a950986450ec@I-love.SAKURA.ne.jp> <064bbe2a-c18e-203e-9e01-b32fe9baa390@I-love.SAKURA.ne.jp> <7ddb25ff-60e5-75be-8080-2a7465cca68c@I-love.SAKURA.ne.jp> <815866b5-842e-4829-5ed8-26a5f1e856a4@suse.com> <22c61a75-8140-c62d-ffe0-efd6e9fa38ee@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22c61a75-8140-c62d-ffe0-efd6e9fa38ee@I-love.SAKURA.ne.jp> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 07, 2022 at 02:06:38PM +0900, Tetsuo Handa wrote: > On 2022/07/06 20:04, Oliver Neukum wrote: > > > > > > On 06.07.22 12:26, Tetsuo Handa wrote: > >> On 2022/07/06 15:34, Greg KH wrote: > >>> On Wed, Jul 06, 2022 at 03:21:15PM +0900, Tetsuo Handa wrote: > >>>> How should we fix this problem? > >>> > >>> We can decrease the timeout in usb_stor_msg_common(). I imagine that if > >>> that timeout is ever hit in this sequence, then all will recover, right? > > > > Not really. The timeout there is supposed to come from the SCSI layer > > in the general case. > > I couldn't catch. usb_stor_msg_common() belongs to USB subsystem, doesn't it? > > How does SCSI layer matter here? > Does USB storage device shows up as if SCSI disk (e.g. /dev/sdb) relevant? Yes. USB storage is a very tiny wrapper around the whole SCSI protocol, it is a SCSI disk for all all intensive purposes. thanks, greg k-h