Received: by 10.223.176.5 with SMTP id f5csp889773wra; Tue, 30 Jan 2018 21:31:49 -0800 (PST) X-Google-Smtp-Source: AH8x226OQ+P0tIB3g+ofO81WBCFMKWVrDpd80Rj+uidFCJB29kjyQbMy4EZllni+xG3QMy2eiUkt X-Received: by 10.98.32.151 with SMTP id m23mr32889672pfj.182.1517376709163; Tue, 30 Jan 2018 21:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517376709; cv=none; d=google.com; s=arc-20160816; b=H//Ok+9nXuXDfltrn9ODldOtaBHeHHCXcC3MA2lcLiXxOEaGWHuKLWYhGPLoJPLcMR 46IxghdFExWihEYRrrSkp2BUDEV331efEZ4p2E9oYOPSSDW8gYHkMW9Jyt7/GQl0SvRM 6Ss3jUfnU1tY6funkB7QvtOoIg8Au37ao1bsBNQV0AKUStKtkumDCgxhqnJEAwYEzI2J pKpQqvaHvJeXXwxxj0ZXm6bvZh19ilrvkGzSvzeE3ycL39uPZHAZeb7TPQnHyOLPlEyp hlmg8Fp5yxdo+EYIjholN3g/9gpL4sHRwc6CyDzTJEmFWzdTdlOPmHZ88Bw+5YSOhB8i DLqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:cc:subject:date:to:from :arc-authentication-results; bh=x7MPOGMRpNRMph8zyWq9k+HV6nsLvFIUXruL0w2MOjU=; b=Rh2BArFTPJ6V7fhbD8/1FPfr4XodgBZM7XKuVu0yegMr/wASrq3lLhTVTNpt/vyhiv 7D6fGBn8zGNJjBFQsj4M4ZEGAu6IcogZgfzFLqxDKYt8MSMRGjzpsrWfGY3s/YugTup0 yQ7+hzt1nMeDzv0X63aTr7nMLBkcK3qJSdKyy1wlH8fxtQD2P79tk5GogIt17EOXHZzq UwTVQLK+gSeGLsGLgwFYB8vphad/DlRKzzieLPkkUwP2NKZabWpLb1atv2MhxCYdiEwX RXtvNv0psjm7w8V6OeOgpLQzCJeuQw2g9Rd8qABtRO1dTsmV2kq1HUvwhQr36zso4i8U AKFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17si1051572pgn.551.2018.01.30.21.31.34; Tue, 30 Jan 2018 21:31:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752006AbeAaFQ3 (ORCPT + 99 others); Wed, 31 Jan 2018 00:16:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:35021 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728AbeAaFQ2 (ORCPT ); Wed, 31 Jan 2018 00:16:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0BBE8AB40; Wed, 31 Jan 2018 05:16:27 +0000 (UTC) From: NeilBrown To: David Howells , Andrew Morton , Ingo Molnar , Anna Schumaker Date: Wed, 31 Jan 2018 16:15:39 +1100 Subject: [md PATCH 0/4] Minor 'cred' improvements prepare for NFS conversion Cc: NFS , lkml Message-ID: <151737571564.14845.2874586176125198504.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, NFS and SUNRPC have an internal "rpc_cred" which plays two distinct roles, one of which is much the same as 'struct cred' (which didn't exist when rpc_cred was created). I want to replace that usage of rpc_cred with 'struct cred'. Doing so requires some minor improvements to cred.c and cred.h as follows. It isn't clear to me who "maintains" cred.c and cred.h, so I'm hoping that Andrew Morton will take these (if no-one complains). Alternately if I got one or two credible "Acked-by"s, they could go upstream through the NFS tree when the rest of the patches are ready. Thanks, NeilBrown --- NeilBrown (4): cred: add cred_fscmp() for comparing creds. cred: add get_cred_rcu() cred: export get_task_cred(). cred: allow get_cred() and put_cred() to be given NULL. include/linux/cred.h | 26 ++++++++++++++++++---- kernel/cred.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 78 insertions(+), 6 deletions(-) -- Signature