From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com ([74.125.82.53]:37890 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755330AbcB2PDa (ORCPT ); Mon, 29 Feb 2016 10:03:30 -0500 Received: by mail-wm0-f53.google.com with SMTP id l68so62387605wml.1 for ; Mon, 29 Feb 2016 07:03:30 -0800 (PST) Date: Mon, 29 Feb 2016 18:03:27 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH 0/18] change mmap_sem taken for write killable Message-ID: <20160229150327.GA13188@node.shutemov.name> References: <1456752417-9626-1-git-send-email-mhocko@kernel.org> <20160229140416.GA12506@node.shutemov.name> <20160229141622.GC16930@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160229141622.GC16930@dhcp22.suse.cz> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Michal Hocko Cc: LKML , Andrew Morton , linux-mm@kvack.org, Alex Deucher , Alex Thorlton , Andrea Arcangeli , Andy Lutomirski , Benjamin LaHaise , Christian =?iso-8859-1?Q?K=F6nig?= , Daniel Vetter , Dave Hansen , David Airlie , Davidlohr Bueso , David Rientjes , "H . Peter Anvin" , Hugh Dickins , Ingo Molnar , Johannes Weiner , "Kirill A . Shutemov" , Konstantin Khlebnikov , linux-arch@vger.kernel.org, Mel Gorman , Oleg Nesterov , Peter Zijlstra , Petr Cermak , Thomas Gleixner Message-ID: <20160229150327.9h-hZReJzskSJIyomZqxDbIBVe7P-aG2qimUgpkJwwk@z> On Mon, Feb 29, 2016 at 03:16:22PM +0100, Michal Hocko wrote: > On Mon 29-02-16 17:04:16, Kirill A. Shutemov wrote: > [...] > > > Most of the patches are really trivial because the lock is help from a > > > shallow syscall paths where we can return EINTR trivially. Others seem > > > to be easy as well as the callers are already handling fatal errors and > > > bail and return to userspace which should be sufficient to handle the > > > failure gracefully. I am not familiar with all those code paths so a > > > deeper review is really appreciated. > > > > What about effect on userspace? IIUC, we would have now EINTR returned > > from bunch of syscall, which haven't had this errno on the table before. > > Should we care? > > Those function will return EINTR only when the current was _killed_ when > we do not return to the userspace. So there shouldn't be any visible > effect. Ah. I confused killable with interruptible. -- Kirill A. Shutemov