Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5382162pxb; Wed, 26 Jan 2022 10:37:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwq++lLmZ7KgXWp+cPybXcEvbR/dca+J0ddJPF83VTMAfbkuH5eFxJKiwTvtOjXAvVO9cuU X-Received: by 2002:a17:907:9492:: with SMTP id dm18mr20314793ejc.633.1643222236970; Wed, 26 Jan 2022 10:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643222236; cv=none; d=google.com; s=arc-20160816; b=hpe51sIUnw7nLyZy70Ch8YRiqV7EOCIQqi9mvVmLAfdwYykqwLIa0+dlfxq/wtzPDq rOAjNL9zjF3eoIRWzvwfR53BVSF/y1YxQXYQ8t4vMfLl8OAX8lOUy6PE2IJ+bO2nXlnL B6pXHn6o2fwtbxY4HdJqWhk+ch2VuCsOsOPPnoRWBBooOLsK1DKP6upjahFyishc+Y3x PM6WN1XYx6hol+H5iTPg6NdDG0VciLxsI6kxcs1xUWMstlKgQatGch6UpDUqR5Vvrk/I H5VdCFiATP0bt/okoBh97DN2uBc9TuSeL7UvbCdWihS7Zlwn2NvlEr+5RJQJ7DOxl8LY oIeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IsRrzz+vVs7xKnz/lewoZVNy+C+wQYHvRJd0f1wPM9U=; b=XtYF60FsPonIdbgbtXew3Q05qd5aEZ3O++uJS53q+UHpN8ZyBqdp/HIXbNi/LER7to ek0sNHFRF8wIiu4/hSE9KVbtospkIbqMbFdWIUqcSUyfedHCSw76F/E+yTQVwcGuDuCr 2U6QY8HrmgzGTX4YMBVFBuG3BwxufHQyZzf3nlrdxN8tIKwmd5H2GWJ6J67Aa8mnD3yN Xf75fFOseQM9J6kUoZukiRKWK9x+EoYdg3NkV1J5XwX7M+jbiOSZatXNVfJf8OYWM6xA Uagt9+nacHyYn98IwFOYlX1p7Qwu5FsEM6/3lxE+jX9PN0elWc+7273cOkZczJh7hCK5 8tXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yTNl4GKI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c28si11471401ejj.566.2022.01.26.10.36.51; Wed, 26 Jan 2022 10:37:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yTNl4GKI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230380AbiAZFEm (ORCPT + 99 others); Wed, 26 Jan 2022 00:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbiAZFEl (ORCPT ); Wed, 26 Jan 2022 00:04:41 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DABEC061744 for ; Tue, 25 Jan 2022 21:04:41 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id n16-20020a17090a091000b001b46196d572so5077302pjn.5 for ; Tue, 25 Jan 2022 21:04:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IsRrzz+vVs7xKnz/lewoZVNy+C+wQYHvRJd0f1wPM9U=; b=yTNl4GKIQ/5sP5Z523fXUAs1DDokQFHNusk8CX8rNrFO0EPJSeD8VmPbmYKwmGs/hR slidDNH735KMBT7U6lZNrIa11M02+QwD3g6P9ySWvc+C23T/vq4iK/2Uf8y/NqpMN6oo oipk2ZKmqo50gHE1JnohScTHv8xHFU9r2YyWOsXLbNiIBFjFCK2tGI9MaqwwNCqO5gI0 a3BYuWqDSnPF04DeQ+jay9xGY33PQ0BqKxTm9J3ML1Ge3I5S2QYKuzTgT0ZXjvJQrb0q ezua+4vJSJCEtVXueb7nS/Ehiy2zm/tkO/f34lVKzTbNtLvBOCzt51QCUzKxp+zfj+vt S6HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IsRrzz+vVs7xKnz/lewoZVNy+C+wQYHvRJd0f1wPM9U=; b=09OQNZghnM0RSXw9XNTeBQzty9QWmzMS7xsmI/ACnlKUFgpna4ImWGwK48Oamma0Lr yU3r4MXzVvjzT6hyPILaVokd3nBbsT76t6gaJsQQbqdHHzlPPuMylV6mBIls6o9Ivcaj chNBX526hfGHHPey9NIZSzYV1psnLE5WVpHzKnwpShm2FlK2lut05W49S+K1KIA65fy+ iO4niD3ZAeeQROZ/h6TDkmyVCbIwSYW1eZ+dxbT/43QjN7/P51kchbbBh+rUEDjsf5Gg 25l8VfN7GTGnGvvJRibm+FMvG4s5QCe+KnnX9uJr5x0bZBOUtPTWEpbeTCvr4azVngwm 2zrQ== X-Gm-Message-State: AOAM5301wsZs+qFIRYfyqhhsE8rsrxa5zDWIzKscxND7EBfvC5+z1Ea9 IudQpJ7bkiUv8KgrDrlUn4AaAg== X-Received: by 2002:a17:902:ce8d:b0:14b:562d:2b3b with SMTP id f13-20020a170902ce8d00b0014b562d2b3bmr11096216plg.57.1643173480550; Tue, 25 Jan 2022 21:04:40 -0800 (PST) Received: from localhost ([134.195.101.46]) by smtp.gmail.com with ESMTPSA id bf23sm1854660pjb.52.2022.01.25.21.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 21:04:39 -0800 (PST) From: Leo Yan To: "David S. Miller" , Jakub Kicinski , Suzuki K Poulose , Leon Romanovsky , Balbir Singh , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH net v3 0/2] pid: Introduce helper task_is_in_root_ns() Date: Wed, 26 Jan 2022 13:04:25 +0800 Message-Id: <20220126050427.605628-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series introduces a helper function task_is_in_init_pid_ns() to replace open code. The two patches are extracted from the original series [1] for network subsystem. As a plan, we can firstly land this patch set into kernel 5.18; there have 5 patches are left out from original series [1], as a next step, I will resend them for appropriate linux-next merging. [1] https://lore.kernel.org/lkml/20211208083320.472503-1-leo.yan@linaro.org/ Changes from v2: * No any code change. * Extract two patches for network subsystem. (Jakub) * Added reviewed and acked tags. (Leon, Suzuki and Balbir) Changes from v1: * Renamed helper function from task_is_in_root_ns() to task_is_in_init_pid_ns(). (Leon Romanovsky) * Improved patches' commit logs for more neat. Leo Yan (2): pid: Introduce helper task_is_in_init_pid_ns() connector/cn_proc: Use task_is_in_init_pid_ns() drivers/connector/cn_proc.c | 2 +- include/linux/pid_namespace.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.25.1