From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751222AbdAMUck (ORCPT ); Fri, 13 Jan 2017 15:32:40 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33776 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbdAMUcj (ORCPT ); Fri, 13 Jan 2017 15:32:39 -0500 MIME-Version: 1.0 In-Reply-To: <20170113201121.GQ1555@ZenIV.linux.org.uk> References: <22648.1838.747474.51727@wylie.me.uk> <22648.32903.752857.203733@wylie.me.uk> <20170113093359.GJ1555@ZenIV.linux.org.uk> <22648.41914.351371.678606@wylie.me.uk> <20170113102019.GK1555@ZenIV.linux.org.uk> <20170113111842.GL1555@ZenIV.linux.org.uk> <20170113200826.GP1555@ZenIV.linux.org.uk> <20170113201121.GQ1555@ZenIV.linux.org.uk> From: Linus Torvalds Date: Fri, 13 Jan 2017 12:32:37 -0800 X-Google-Sender-Auth: pJYo9-KozzT6cj9QfGri8LETU-c Message-ID: Subject: Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn To: Al Viro Cc: "Alan J. Wylie" , Thorsten Leemhuis , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 13, 2017 at 12:11 PM, Al Viro wrote: > > PS: 'size' argument of iov_iter_advance() is the second "some" in the > above - we tell it how much we want to advance by and everything past > that point is, in case of PIPE_ITER, discarded. Ok. The naming threw me. It would be more logical to call that operation a "truncate", not advance. I notice that one of the comments in fs/splice.c actually says that: iov_iter_advance(&to, copied); /* truncates and discards */ but yes, I see what it's trying to do now. Ugh. I still think your patch is butt-ugly, and the index comparisons make me nervous, but.. Let's see if Alan's issue actually goes away with your later patch. Linus