Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1287944ybg; Fri, 18 Oct 2019 15:16:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqygPbTN7f83gdUi2qhGVDa7JRlu6v7t8wxTVRXoqNI8OGT133RtSgbBX63ah02yfZlOYlNd X-Received: by 2002:a17:906:4948:: with SMTP id f8mr10767774ejt.318.1571436972412; Fri, 18 Oct 2019 15:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436972; cv=none; d=google.com; s=arc-20160816; b=lR5uHDmoO28MRfLDvmdANk+ptVqCaBvFvNgHS/jv06zDRHmPIDO/LDrJGkpIcwLxR4 pZhuPE9ecJjP38nhkjLr6/IaRJAOqbFKsqQGa0Noq7lhxVrgW/OIOnhwNX8DKdWEHQuh i4GefxonA5UGK2JoUycZ8snLSnqdGHBRN68DdupmMwQS0UWlJSOM4UPOm7CqrVcW+a+X TkvOHaM1cQ98/NF6xf7S43XTDjjqIGKYnW3mj5AhqVZpefGeJ2j3zj/Giil1Kdv0oVOS sRDJm78XmPCSlVauW3myunaVp6ccn3i8QJZx8fl8u5dyhUzH6Q8D6mP3PE+UZjVCt60l BJsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=NAtDxnl5xIImNdE04yRMt7e0qwIgrj6akJKCG/PW8Aw=; b=EfK03KNsq2CLRsq1iBIG8YghaaMrQJSawZzNfmypQvyPQ1qkaPHCt3rIRO/KM6pmNi i5AJ0bz2iUfgEuUp4IWxPXcY3pj9EEunIOIteaYYZo9M8nKxkHnErDm13VupQrHnk4Y8 0HY7TvkgzGGvs4AyZkeKqDfwz744nXI9h5rmhNyXUia3+xc5CfFlJ0I/++2aQDhRd2YD Sd5vv1MnGP2Uy20Bmxf7nOQjW2vu8edPy0xOnguxdVSYTawIQVquo99cK+5o5O1Df5dx deUg7lSwNhKRfyo4MupvTtLCo3U4necyrAdR8YWdrfsp4X1W9F0gC/Pe9IwyoxQ2HzEu LNiQ== 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 be24si4661081edb.120.2019.10.18.15.15.49; Fri, 18 Oct 2019 15:16:12 -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 S2503477AbfJQTXf (ORCPT + 99 others); Thu, 17 Oct 2019 15:23:35 -0400 Received: from netrider.rowland.org ([192.131.102.5]:54085 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S2503463AbfJQTXf (ORCPT ); Thu, 17 Oct 2019 15:23:35 -0400 Received: (qmail 18603 invoked by uid 500); 17 Oct 2019 15:23:34 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 Oct 2019 15:23:34 -0400 Date: Thu, 17 Oct 2019 15:23:34 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Piergiorgio Sartor cc: Christoph Hellwig , Jens Axboe , USB list , , Kernel development list Subject: Re: reeze while write on external usb 3.0 hard disk [Bug 204095] In-Reply-To: <20191017175306.GA3014@lazy.lzy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Oct 2019, Piergiorgio Sartor wrote: > > Here is one more thing you can try. I have no idea whether it will > > make any difference, but the Changelog entry for the patch you > > identified suggests that it might help. > > > > Alan Stern > > > > > > > > Index: usb-devel/drivers/usb/storage/scsiglue.c > > =================================================================== > > --- usb-devel.orig/drivers/usb/storage/scsiglue.c > > +++ usb-devel/drivers/usb/storage/scsiglue.c > > @@ -68,7 +68,6 @@ static const char* host_info(struct Scsi > > static int slave_alloc (struct scsi_device *sdev) > > { > > struct us_data *us = host_to_us(sdev->host); > > - int maxp; > > > > /* > > * Set the INQUIRY transfer length to 36. We don't use any of > > @@ -78,15 +77,6 @@ static int slave_alloc (struct scsi_devi > > sdev->inquiry_len = 36; > > > > /* > > - * USB has unusual scatter-gather requirements: the length of each > > - * scatterlist element except the last must be divisible by the > > - * Bulk maxpacket value. Fortunately this value is always a > > - * power of 2. Inform the block layer about this requirement. > > - */ > > - maxp = usb_maxpacket(us->pusb_dev, us->recv_bulk_pipe, 0); > > - blk_queue_virt_boundary(sdev->request_queue, maxp - 1); > > - > > - /* > > * Some host controllers may have alignment requirements. > > * We'll play it safe by requiring 512-byte alignment always. > > */ > > Hi, > > I tested the patch. > > Assumming I did everything properly, add patch, > test, issue not showing up, remove patch, re-test, > issue present. > > It seems this patch you provide solves the issue. > > Thanks a lot for the support and the solution. > > I guess now this patch will be integrated into > mainline sometimes. > Please let me know, in this thread or directly, in > which kernel it will be available. I'm busy for the next few days, but I will submit the patch next week. > Thanks again, it would be for me impossible to > solve without your support, You're welcome. Alan Stern