From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [Bug 106241] New: shutdown(3)/close(3) behaviour is incorrect for sockets in accept(3) Date: Sun, 1 Nov 2015 16:59:23 -0800 Message-ID: References: <1446122119.7476.138.camel@edumazet-glaptop2.roam.corp.google.com> <20151030210215.GI22011@ZenIV.linux.org.uk> <20151030223317.GK22011@ZenIV.linux.org.uk> <20151031193449.GM22011@ZenIV.linux.org.uk> <20151031202929.GN22011@ZenIV.linux.org.uk> <20151102002421.GP22011@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Eric Dumazet , David Miller , Stephen Hemminger , Network Development , David Howells , linux-fsdevel To: Al Viro Return-path: In-Reply-To: <20151102002421.GP22011@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sun, Nov 1, 2015 at 4:24 PM, Al Viro wrote: > > This ought to be a bit cleaner. Eric, could you test the variant below on your > setup? I'd love to see the numbers, but at the same time I really can't say I love your patch. I've merged my own two patches for now (not actually pushed out - I don't want to distract people from just testing 4.3 for a while), because I felt that those had a unreasonably high bang-for-the-buck (ie big speedups for something that still keeps the code very simple). I'm definitely open to improving this further, even go as far as your patch, but just looking at your version of __alloc_fd(), I just don't get the warm and fuzzies. Linus