Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5132468ybx; Sun, 10 Nov 2019 07:35:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxmRYU0kJnKstem3bTwG0Mkr+wfZ2IfZUR9N7/YQ9no5Dsd40Clsa8621y7dTjfGGWbjLQ7 X-Received: by 2002:a50:8969:: with SMTP id f38mr21405165edf.211.1573400120977; Sun, 10 Nov 2019 07:35:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573400120; cv=none; d=google.com; s=arc-20160816; b=EXlHF+wMvMY/YKotkMj76HH/Xh/hhBeJDARWGi50wMnJud9QL7RqTh4YH6nO+yJp/n SPiQqPm9fC0fnUUS7hozVhNIa985xCiRNCPERpVTgZ4tDnNUshVoAmmaeSgCDVrbuapS U6V/jFPqAcimksbMKzShut/BYJn2i+tD1bJhcgT5ZjxJ2wA/28Ldv1qSyZk/3DavhDwu yvXaW5lcnZblRAMT9rMGQ3KZnqqCTG67Jac2dt0wY8V/xzp6nlImJPDFXLbRZBPmPrfk N5ZMPx7FhDocbD9GCrcvfrRE2z9cGnlO3VlfoOhhJXP0L20ZN5MDXRWOad5nzIHhol/Y 1Iaw== 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=kA3+si4+0aBjj19UUk3a6RF767ttgUe0g8ioE1begjY=; b=pLqrYFYMfpu/hN9x1GXAtrQ4xHiXRDjNY8zSPtn/1bHyjOUbT04y8H6Ayr48ApAC4J 8uA/GdcT1WDVqBv55vwBZ6V8MyBHLowempf7m7GLCHEAVcobx+1+QvDLheo2sbIG4k78 HSawld4obHrJnUHyjp2E4MFi9r40Sj24Lfoaldw2cnpZNMFw0+ujydk8ilsC9ZEAzf0i 9AkB9XSh1q+pnKeFm6+xtyElf7qZtkm80P8gHM7STTnc3q/sHq0MK36/zgB4hM3yQSYg PenWpOw+9iVYYgj8M+VVtNe1/L8ILDQUGw1aWYPXtt9zRLZ4KRh3QQo5CP6zSHmwMw03 XbpQ== 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 gx24si7869067ejb.429.2019.11.10.07.34.58; Sun, 10 Nov 2019 07:35:20 -0800 (PST) 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 S1726845AbfKJPeE (ORCPT + 99 others); Sun, 10 Nov 2019 10:34:04 -0500 Received: from netrider.rowland.org ([192.131.102.5]:59177 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726653AbfKJPeD (ORCPT ); Sun, 10 Nov 2019 10:34:03 -0500 Received: (qmail 29471 invoked by uid 500); 10 Nov 2019 10:34:02 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Nov 2019 10:34:02 -0500 Date: Sun, 10 Nov 2019 10:34:02 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Oliver Neukum cc: Greg Kroah-Hartman , , , Christoph Hellwig Subject: Re: [PATCH 4.19 114/149] UAS: Revert commit 3ae62a42090f ("UAS: fix alignment of scatter/gather segments") In-Reply-To: <1573396023.2662.4.camel@suse.com> 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 Sun, 10 Nov 2019, Oliver Neukum wrote: > Am Freitag, den 08.11.2019, 10:35 -0500 schrieb Alan Stern: > > On Fri, 8 Nov 2019, Greg Kroah-Hartman wrote: > > > > > On Thu, Nov 07, 2019 at 12:32:45PM +0100, Oliver Neukum wrote: > > > > Am Dienstag, den 05.11.2019, 17:38 +0100 schrieb Greg Kroah-Hartman: > > > > > > > Given this information, perhaps you will decide that the revert is > > > > > > > worthwhile. > > > > > > > > > > > > Damned if I do, damned if I do not. > > > > > > Check for usbip and special case it? > > > > > > > > > > We should be able to do that in the host controller driver for usbip, > > > > > right? What is the symptom if you use a UAS device with usbip and this > > > > > commit? > > > > > > > > Yes, that patch should then also be applied. Then it will work. > > > > Without it, commands will fail, as transfers will end prematurely. > > > > > > Ok, I'm confused now. I just checked, and I really have no idea what > > > needs to be backported anymore. 3ae62a42090f ("UAS: fix alignment of > > > scatter/gather segments") was backported to all of the stable kernels, > > > and now we reverted it. > > > > > > So what else needs to be done here? > > > > In one sense, nothing needs to be done. 3ae62a42090f was intended to > > fix a long-standing problem with USBIP, but people reported a > > OK, now I am a bit confused. AFAICT 3ae62a42090f actually did fix the > issue. So if you simply revert it, the issue will reappear. Correct. I think. > > regression in performance. (Admittedly, the report was about the > > correponding change to usb-storage, not the change to uas, but it's > > reasonable to think the effect would be the same.) So in line with the > > Yes. > > > no-regressions policy, we only need to revert the commit -- which you > > have already done. > > But that breaks UAS over USBIP, doesn't it? It was already broken to start with. The attempted fix caused a regression, so the fix must be reverted. > > On the other hand, the long-standing problem in USBIP can be fixed by > > back-porting commit ea44d190764b. But since that commit isn't a > > bug-fix (and since it's rather large), you may question whether it is > > appropriate for the -stable kernel series. > > It certainly is large. But without it UAS won't work over USBIP, will > it? I think that is the central question we need to answer here. You are right. If Greg is okay with porting ea44d190764b to the stable kernels, I won't object. Alan Stern