Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2604486rda; Wed, 25 Oct 2023 07:29:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMkY2IeIOaIfQS2h2ElQaAGHogydv4WyjN3qRmTgrJLgbRDFmCHwy/e90GwlEc8rrkID9m X-Received: by 2002:a25:292:0:b0:d9a:49bb:b8b1 with SMTP id 140-20020a250292000000b00d9a49bbb8b1mr13765485ybc.4.1698244155155; Wed, 25 Oct 2023 07:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698244155; cv=none; d=google.com; s=arc-20160816; b=KyKaT7A0DcJ3NNtIkL3cMZFaku1pIQhYXhBknRvWL4zQ0MpbY0ngWdeGU47ho4Yg9Z x0Jjku96uHru9VCHxGGL8fL7QQpTs7lpf1Vo8DkJc2THrjM/krthv/wlPGzs18hJJLL7 3Mrao5knuVTykLPijq6cqHij2YAUJCDGU+nqWaIgWEYok2mIeHXsx5uoz0x9D1D9oCho YjyW5YUm45hdG5LX0U5QBOYJUMqW/F+lOvG0c8i03Wg3c90mVmWB1YDB07o+ZHt66Wce 4cpEVxCWy4/kJPExeoesSpVaC/ZJmw1ZwOV42iFwJ7sZv3x15Ayr2Z4b3qRMgHtVbwlP 6GnQ== 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; bh=7fe6kaLoswCIpx0VDWpLmWoca1lXGif1MeSTKraPgdo=; fh=ikAxb0vA1SsOcj5RtR7msHd4l5tzxKxDpKDBYpixuTM=; b=twIx0JzOsh6krVKgJ5i+c0kwVXjc/hccPbTLeiBB4tfYdfs+plASVz9ms06Qfh/WFQ BnlwrdghokuC9euSTpWiOadSEizB1ooHlQPgs8QozXh6qtjciue/Ug1bNCyEL6YQWbei ZhqhYqVnG6N4+TNY8Y20E1UDtZl4yUMfVEx1zJf/0QmbzSx1fqCWu8+t/YO+awVuPt9a llfMvTERS6u3B9DNLuqp+KolhBSUT8t0A5Wi4/BPMjDDA4gKX+cnwlps90KzfHn2iB2R 8TcxzC8QxNxuNafeY+4aLK2ij1eP7ugiMOzrqkgSpxfp3DlDMzVJC42oOd7UTF3gzOWD nTGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 67-20020a250046000000b00d9ac812858esi11040697yba.494.2023.10.25.07.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B682B801CCD5; Wed, 25 Oct 2023 07:29:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344660AbjJYO2q (ORCPT + 99 others); Wed, 25 Oct 2023 10:28:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344929AbjJYO2o (ORCPT ); Wed, 25 Oct 2023 10:28:44 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id E50F2194 for ; Wed, 25 Oct 2023 07:28:41 -0700 (PDT) Received: (qmail 495484 invoked by uid 1000); 25 Oct 2023 10:28:41 -0400 Date: Wed, 25 Oct 2023 10:28:41 -0400 From: Alan Stern To: Oliver Neukum Cc: "gregkh@linuxfoundation.org" , "Li, Meng" , "linux-usb@vger.kernel.org" , "usb-storage@lists.one-eyed-alien.net" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] usb: storage: add shutdown function for usb storage driver Message-ID: <8ed3dd57-120a-49d2-817b-504d2f5523fc@rowland.harvard.edu> References: <20231023054111.2744872-1-Meng.Li@windriver.com> <33bd0779-bfe7-4c87-8fe6-ea8455df3b6b@rowland.harvard.edu> <3fe5b43c-a5aa-4c6a-8614-03a4d9dd53e2@rowland.harvard.edu> <2023102428-zit-quickness-9b73@gregkh> <5107f6ca-e972-4af1-a21d-6c95778969f3@rowland.harvard.edu> <2023102459-protector-frequency-1033@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:29:11 -0700 (PDT) On Wed, Oct 25, 2023 at 11:07:07AM +0200, Oliver Neukum wrote: > On 24.10.23 21:23, Alan Stern wrote: > > Since USB class-device drivers don't have ->shutdown callbacks (there is > > no shutdown() method in struct usb_driver), they don't know what's going > > on while a shutdown or reboot is in progress. All they see is a bunch > > of errors. > > Does this solve the issue? You'd have to flush the cache on the SCSI > device further down in the tree, if you want this done properly. Depends on what issue you're talking about. The purpose of the proposed patch was not to make sure that the reboot happens cleanly; it was to prevent certain error messages from showing up in the system log. Besides, Meng Li has decided to withdraw the patch submission. Alan Stern