From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [REGRESSION] 998ef75ddb and aio-dio-invalidate-failure w/ data=journal Date: Tue, 6 Oct 2015 09:56:52 +0200 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 Cc: Linus Torvalds , Dave Hansen , Theodore Ts'o , Andrew Morton , "linux-ext4@vger.kernel.org" , Linux Kernel Mailing List To: "H. Peter Anvin" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.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