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 8DE18C432C0 for ; Mon, 25 Nov 2019 14:58:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 664FE20836 for ; Mon, 25 Nov 2019 14:58:46 +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="cmrRsyyC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728400AbfKYO6m (ORCPT ); Mon, 25 Nov 2019 09:58:42 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:37855 "EHLO mail-wr1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728297AbfKYO6m (ORCPT ); Mon, 25 Nov 2019 09:58:42 -0500 Received: by mail-wr1-f46.google.com with SMTP id t1so18421589wrv.4 for ; Mon, 25 Nov 2019 06:58:41 -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=T38u6s14lrIokjD1pfLNotz8RAAutgMlPAmccZz9BPU=; b=cmrRsyyCllSniFrjyjMRP2Yq+xb/s78lts1IDyaIr80zUiVHhSDsEGvLidHhGIrZ6R ZwO3YdZ05CMmvY0kXGTB6Kuyjx7eFQMwmguM9fB8cI/Ma8S8LOrygGjGOJKOtL50dEo1 OMCeKeQSxg8uvDKFgQnV3Z/6nUxTFCm3Mtyc744LDIp0Z2vY0h+WPJLvh2q/p+ZKhRMm kxcvSANreT5Olgl4GLV/6pFgznBPeGBMYZO665xL0C5V1K48/iczFWAabN9J8gCwqUfd dHcVHLF3fxRtgVvUaqIBDQdFgukSkp/wjtV43zd0UNKf0E4n9+O2udD7R55snM40piVb c3Ng== 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=T38u6s14lrIokjD1pfLNotz8RAAutgMlPAmccZz9BPU=; b=eJ9P4sFlTKHxD1gJN7twYQMvL2vYaBRdiuzdqcUCIks12c9iv1ox+UZ3zjcqO2IuAx 6uPolzHByXvGFDiOADAKKusFZPR+RL/1OkzqNcei9a3ipOvMCr5s4fwQ8UxButZTG3Z1 MPD4m2+6wDQyMiy67XgggoW5pHUsTaAqkw4WVu28Gp+FgXLqM2f9QO8HlFuOlFugUIDx 9cFyihmZzLotiimC2IEFjEzx0mIT/qaLgleBDt4+uUS14isXqUo3CKgeJlLu99pRQe6u co7GfaX2p3WOBKy4DM79MU43599OrY+vqL16gVezcazvb2gxp0c2IL+Cq52BV9wSbTFM nUYw== X-Gm-Message-State: APjAAAV3F2dnE5uLDk1ptHVN855kDhHSSS2iVILAaQTkL9lQ7LPkbI7y DJuqSeG8t93gKqWskdMBg5c+2Q== X-Google-Smtp-Source: APXvYqwUlTUX50T3KRUQgx3L5evsrTDO/ep5jdtg2X5g0zuWja7jHszHn6fHn5H80Bj3MXxmxcrwTw== X-Received: by 2002:a5d:640d:: with SMTP id z13mr13656971wru.181.1574693920561; Mon, 25 Nov 2019 06:58:40 -0800 (PST) Received: from angus.unipv.it (angus.unipv.it. [193.206.67.163]) by smtp.gmail.com with ESMTPSA id x8sm10676344wrm.7.2019.11.25.06.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 06:58:39 -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 15:58:34 +0100 In-Reply-To: <20191125102928.GA20489@ming.t460p> References: <20191109222828.GA30568@ming.t460p> <20191123072726.GC25356@ming.t460p> <20191125035437.GA3806@ming.t460p> <20191125102928.GA20489@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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Il giorno lun, 25/11/2019 alle 18.29 +0800, Ming Lei ha scritto: > On Mon, Nov 25, 2019 at 11:11:00AM +0100, Andrea Vai wrote: > > 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. > > Looks there is small conflict, however it has been fixed by patch, > so > it is correct, please go on your test. Done, it still fails (2000 seconds or more to copy 1GB) :-( cat /sys/block/sdf/queue/scheduler outputs: [mq-deadline] none What to try next? Thanks, Andrea