Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp278851imm; Fri, 10 Aug 2018 11:05:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx1a1Dk5nfF6+GSoqtZY1Yz4XMycPNpmL6woZ1kOOa/TDkmLY85XQdnZNYojbInBijwvnFE X-Received: by 2002:a17:902:c6:: with SMTP id a64-v6mr4871003pla.180.1533924355317; Fri, 10 Aug 2018 11:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533924355; cv=none; d=google.com; s=arc-20160816; b=DlGkHqV/OM7YAY2GCTB+NidNuKbsOGcppvhaodQhSEYVHYvHaPxe8qyvi0AlSlNDQV eBefHhLP8ZX/RoxA1DYh4c0Wn/PJC7rCInxr7pGDFgtV+T5m3cs5SPRwBSUavscgrGco snpDGl6uVKoO/lNpRjE0sqrJtRGINjKM1XLZ8CYheykKu6izzOTBkQS2Lan05LQbJWGJ BoZfvYVt8Y7yKS2b0IE/4Cl+VmZYmXMJg8enIgxf6BnoUQAZX5rEsHmdRXT7QgOy+r14 5TLHG7BqJgIXQpP9W+BlO5mfyFyFO3qoJN3xRJpdBgE6qM1Qzed8zm9dEG0gpyolg/Rc AG+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=jv6rwNx1QBB5OUw/CsB7AgFl1f3wMD0BIzNnVF8c8aY=; b=HMj91gkosJbsLXzTGHVZHrE4cCE71Kv6wft6SWtq4OC2+Pyr9OnVUoWtgdtALgijRY fLyycHujTd4PpAmfkaU/J7mr13LZ9te5COPfb3fB1zMhZAZ0dZS8PmDppHik2rRsW/Qu a4ZWWoUFbQN0WIZJhHktLDmuciGToc9OsVFgO8NcwPoSrrbPTrT3ZiS3b1lZb1cyIbft L5HyMfGiplPBWEHnLgx/Kvv+bh8ZRGclR+JvITvjUWFL2LGalMUeJG19TajcIWOVmCGs ZjUWFeNs3Ea/Is8qKcGFI0BvlnekcrPuw6f6kqWxZ04NrhQ+nEKcIsD+3swWneq3Kn65 p/HQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y68-v6si9946338pfg.246.2018.08.10.11.05.40; Fri, 10 Aug 2018 11:05:55 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbeHJT5y (ORCPT + 99 others); Fri, 10 Aug 2018 15:57:54 -0400 Received: from mga09.intel.com ([134.134.136.24]:48923 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbeHJT5y (ORCPT ); Fri, 10 Aug 2018 15:57:54 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Aug 2018 10:27:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,220,1531810800"; d="scan'208";a="223646836" Received: from shader1-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.32.244]) by orsmga004.jf.intel.com with ESMTP; 10 Aug 2018 10:27:01 -0700 Date: Fri, 10 Aug 2018 20:27:00 +0300 From: Jarkko Sakkinen To: Tadeusz Struk Cc: flihp@twobit.us, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv Message-ID: <20180810172700.GU4692@linux.intel.com> References: <153367365951.18015.11320230309813817454.stgit@tstruk-mobl1.jf.intel.com> <153367366462.18015.12915462188877575543.stgit@tstruk-mobl1.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153367366462.18015.12915462188877575543.stgit@tstruk-mobl1.jf.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 07, 2018 at 01:27:44PM -0700, Tadeusz Struk wrote: > Add a ptr to struct tpm_space to the file_priv to have an easy > access to it in the async job without the need to allocate memory. > This also allows to consolidate of the write operations for > the two interfaces. I think the 2nd premise should be the priority and the first premise should be removed as it is not needed in any possible way to justify the change. /Jarkko