From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f181.google.com ([209.85.214.181]:36351 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752706AbcB2PmA (ORCPT ); Mon, 29 Feb 2016 10:42:00 -0500 Received: by mail-ob0-f181.google.com with SMTP id s6so87238297obg.3 for ; Mon, 29 Feb 2016 07:42:00 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1456752417-9626-11-git-send-email-mhocko@kernel.org> References: <1456752417-9626-1-git-send-email-mhocko@kernel.org> <1456752417-9626-11-git-send-email-mhocko@kernel.org> From: Andy Lutomirski Date: Mon, 29 Feb 2016 07:41:39 -0800 Message-ID: Subject: Re: [PATCH 10/18] vdso: make arch_setup_additional_pages wait for mmap_sem for write killable Content-Type: text/plain; charset=UTF-8 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 , Benjamin LaHaise , =?UTF-8?Q?Christian_K=C3=B6nig?= , 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 , Mel Gorman , Oleg Nesterov , Peter Zijlstra , Petr Cermak , Thomas Gleixner , Michal Hocko Message-ID: <20160229154139.RY5kbL2ldvVGltAqfGgAhkBynGHDqnDAQudvcbArVag@z> On Mon, Feb 29, 2016 at 5:26 AM, Michal Hocko wrote: > From: Michal Hocko > > most architectures are relying on mmap_sem for write in their > arch_setup_additional_pages. If the waiting task gets killed by the oom > killer it would block oom_reaper from asynchronous address space reclaim > and reduce the chances of timely OOM resolving. Wait for the lock in > the killable mode and return with EINTR if the task got killed while > waiting. Acked-by: Andy Lutomirski # for the x86 vdso