From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by kanga.kvack.org (Postfix) with ESMTP id 8BA586B0038 for ; Tue, 31 Oct 2017 12:39:11 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id f66so19647725oib.1 for ; Tue, 31 Oct 2017 09:39:11 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id o55si1228795otd.163.2017.10.31.09.39.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 09:39:10 -0700 (PDT) Date: Tue, 31 Oct 2017 17:39:07 +0100 From: Oleg Nesterov Subject: Re: [PATCH v2] pids: introduce find_get_task_by_vpid helper Message-ID: <20171031163906.GA576@redhat.com> References: <1509126753-3297-1-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1509126753-3297-1-git-send-email-rppt@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Mike Rapoport Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Darren Hart , Balbir Singh , linux-mm , lkml On 10/27, Mike Rapoport wrote: > > There are several functions that do find_task_by_vpid() followed by > get_task_struct(). We can use a helper function instead. > > Signed-off-by: Mike Rapoport > --- > > v2: remove futex_find_get_task() and ptrace_get_task_struct() as Oleg > suggested Acked-by: Oleg Nesterov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753903AbdJaQjN (ORCPT ); Tue, 31 Oct 2017 12:39:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369AbdJaQjK (ORCPT ); Tue, 31 Oct 2017 12:39:10 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 10CBD2020F Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=oleg@redhat.com Date: Tue, 31 Oct 2017 17:39:07 +0100 From: Oleg Nesterov To: Mike Rapoport Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Darren Hart , Balbir Singh , linux-mm , lkml Subject: Re: [PATCH v2] pids: introduce find_get_task_by_vpid helper Message-ID: <20171031163906.GA576@redhat.com> References: <1509126753-3297-1-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1509126753-3297-1-git-send-email-rppt@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 31 Oct 2017 16:39:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/27, Mike Rapoport wrote: > > There are several functions that do find_task_by_vpid() followed by > get_task_struct(). We can use a helper function instead. > > Signed-off-by: Mike Rapoport > --- > > v2: remove futex_find_get_task() and ptrace_get_task_struct() as Oleg > suggested Acked-by: Oleg Nesterov