Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754112AbbBYV64 (ORCPT ); Wed, 25 Feb 2015 16:58:56 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:47484 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbbBYV6y (ORCPT ); Wed, 25 Feb 2015 16:58:54 -0500 From: Davidlohr Bueso To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, dave@stgolabs.net Subject: [PATCH -part2 0/3] mm: improve handling of mm->exe_file Date: Wed, 25 Feb 2015 13:58:34 -0800 Message-Id: <1424901517-25069-1-git-send-email-dave@stgolabs.net> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 30 This set addresses exe_file use for users that require the mmap_sem for other things (mostly looking up the related vma->vm_file). In a lot of cases we end up with scenarios where we take the mmap_sem in get_mm_exe_file(), just to then take it again soon after. This is only temporary as we will remove the need for mmap_sem when dealing with exe_file. Applies on top of linux-next (-20150225). The arch bits are entirely 100% untested, so I apologize if there are any stupid build issues. Thanks! Davidlohr Bueso (3): tile/elf: reorganize notify_exec() oprofile: reduce mmap_sem hold for mm->exe_file powerpc/oprofile: reduce mmap_sem hold for exe_file arch/powerpc/oprofile/cell/spu_task_sync.c | 13 +++++---- arch/tile/mm/elf.c | 47 ++++++++++++++++++------------ drivers/oprofile/buffer_sync.c | 30 ++++++++++--------- 3 files changed, 53 insertions(+), 37 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/