From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7814C432C0 for ; Mon, 25 Nov 2019 10:11:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C06E82071E for ; Mon, 25 Nov 2019 10:11:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=unipv-it.20150623.gappssmtp.com header.i=@unipv-it.20150623.gappssmtp.com header.b="vSvVHULp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbfKYKLF (ORCPT ); Mon, 25 Nov 2019 05:11:05 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:54814 "EHLO mail-wm1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727133AbfKYKLF (ORCPT ); Mon, 25 Nov 2019 05:11:05 -0500 Received: by mail-wm1-f50.google.com with SMTP id b11so5326100wmj.4 for ; Mon, 25 Nov 2019 02:11:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unipv-it.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Bwpubt5kO9MpF6+DhDd9tFXMqNxMMg0/sf7IorDXQyk=; b=vSvVHULp7DD7lYRvr2dnS4yvZFxgC2sHfS0hqs1sHp7uGdaRTaNLgh0nB15KXx49yI d9ndwlfx2sBiMePPGdCUiqrUVJmYbHkrbYzXF1vesYOZZldXSUjTo0a2hTmF9sjR9QyD 6dxBUB1R7IAurqg4iAsu2obFxdeuVcAGHjc2J6u/3AGjCcEp8zpO6q7DjhE7qiu26MJN n9Yw/S1l3/MMIS/hPH2Wb1cTFITadmvYybyppnsA7vXNq8pdC/rO5U2rhFgsastbCupJ wdlwv5oVuAWFt07xWyzgcbt/Y0Hi1PQsGRAp1XBC1tThcm+in8vhIenirOlQClvvhFD9 3BDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Bwpubt5kO9MpF6+DhDd9tFXMqNxMMg0/sf7IorDXQyk=; b=YElo29VmnzPRlhSJqNrVDpFUvcSCUdghL/0Hiy+JJPuU3P12sgMnD5Lu9wJru5WHuP E2MOMKyVZWPmzK/l9ugjQkyqrlZgaJBZik3DYEy7oQot4OG/6pr3Kf7HA6G3sqdO7JIf JJmAd4rIldjO0J59tQksop6DV/f5pLx62EjZFQM7dBaZqZrTXCBd0NERuLgqYC4wP4lD MlAbZtalV/ycmX4zpUHyYkfytxRvsuyjzl9x2DzFV4kBnpYDTAVzPbbwuXlfBWLnbciW bqyGTx85w75YwHx67oSeJrunPFhaaWau3XMWGJpYkPblhvObEe5i85ma8fioF4xI6mWO LtGg== X-Gm-Message-State: APjAAAXteRvbb3NdhNe2KKRelEfn0v4cms0MxVznxQ36Y/bUn2lZdjoL cz2aZIhlfAO1WOFMnhJH3H4yqA== X-Google-Smtp-Source: APXvYqxYaE+TwA2dYd5tAr202DSVevWFDYjL18tBGvRXf25h/jnPJLpvFlNOJvKfFSjgx+2nhWTsXg== X-Received: by 2002:a05:600c:2257:: with SMTP id a23mr29322180wmm.143.1574676662350; Mon, 25 Nov 2019 02:11:02 -0800 (PST) Received: from angus.unipv.it (angus.unipv.it. [193.206.67.163]) by smtp.gmail.com with ESMTPSA id 4sm8142393wmd.33.2019.11.25.02.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 02:11:01 -0800 (PST) Message-ID: Subject: Re: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 From: Andrea Vai To: Ming Lei Cc: Damien Le Moal , Alan Stern , Jens Axboe , Johannes Thumshirn , USB list , SCSI development list , Himanshu Madhani , Hannes Reinecke , Omar Sandoval , "Martin K. Petersen" , Greg KH , Hans Holmberg , Kernel development list Date: Mon, 25 Nov 2019 11:11:00 +0100 In-Reply-To: <20191125035437.GA3806@ming.t460p> References: <20191109222828.GA30568@ming.t460p> <20191123072726.GC25356@ming.t460p> <20191125035437.GA3806@ming.t460p> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) 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 Il giorno lun, 25/11/2019 alle 11.54 +0800, Ming Lei ha scritto: > On Sat, Nov 23, 2019 at 04:44:55PM +0100, Andrea Vai wrote: > > Il giorno sab, 23/11/2019 alle 15.28 +0800, Ming Lei ha scritto: > > > > > > Please post the log of 'lsusb -v', and I will try to make a > patch > > > for > > > addressing the issue. > > > > attached, > > Please apply the attached patch, and re-build & install & reboot > kernel. > > This time, please don't switch io scheduler. # patch -p1 < usb.patch outputs: (Stripping trailing CRs from patch; use --binary to disable.) patching file block/blk-mq.c Hunk #1 succeeded at 1465 (offset 29 lines). Hunk #2 succeeded at 3061 (offset 13 lines). (Stripping trailing CRs from patch; use --binary to disable.) patching file drivers/scsi/scsi_lib.c Hunk #1 succeeded at 1902 (offset -37 lines). (Stripping trailing CRs from patch; use --binary to disable.) patching file drivers/usb/storage/scsiglue.c Hunk #1 succeeded at 651 (offset -10 lines). (Stripping trailing CRs from patch; use --binary to disable.) patching file include/linux/blk-mq.h Hunk #1 succeeded at 226 (offset -162 lines). (Stripping trailing CRs from patch; use --binary to disable.) patching file include/scsi/scsi_host.h patch unexpectedly ends in middle of line patch unexpectedly ends in middle of line Just to be sure I have to go on, is this correct? Sounds like an error but I don't know if it is important. Thanks, Andrea