From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314AbbJFH45 (ORCPT ); Tue, 6 Oct 2015 03:56:57 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33683 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbbJFH44 (ORCPT ); Tue, 6 Oct 2015 03:56:56 -0400 Date: Tue, 6 Oct 2015 09:56:52 +0200 From: Ingo Molnar To: "H. Peter Anvin" Cc: Linus Torvalds , Dave Hansen , "Theodore Ts'o" , Andrew Morton , "linux-ext4@vger.kernel.org" , Linux Kernel Mailing List Subject: Re: [REGRESSION] 998ef75ddb and aio-dio-invalidate-failure w/ data=journal Message-ID: <20151006075652.GA11757@gmail.com> References: <20151005152236.GA8140@thunk.org> <5612A3F3.2040609@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * H. Peter Anvin wrote: > On October 5, 2015 1:22:44 PM PDT, Linus Torvalds wrote: > > > > We could probably do them outside the loop, rather than tightly around the > > actual move instructions. Peter (hpa), is there some sane interface to try to > > do that? > > There are... in particular the get_user_try/catch mechanism, used among other > things by the signal handing, as well as the copy functions (I don't have the > original code in front of me so I don't have the context which would be > appropriate.) Yes, but note that those interfaces are x86 only at the moment, so they'd have to be factored out and generalized before we can use it in generic code. Thanks, Ingo