Received: by 10.192.165.148 with SMTP id m20csp167635imm; Thu, 3 May 2018 17:17:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZru63l5vraaoaNUMg7yJF79pAIVdoSrHz5j5fX7LLjkWvk6JEWKJA7puk0KBDLA2h1HjHR/ X-Received: by 10.98.249.9 with SMTP id o9mr19110397pfh.256.1525393039985; Thu, 03 May 2018 17:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525393039; cv=none; d=google.com; s=arc-20160816; b=cOxt6hjjkHtzHB6iSaDBELWkq6HveGdSdZv0ZD50w47QoWJM/tHQ6PVwtSoZKYYS6n 42eGSW2EHg41XffKILXxU48Rs2t9x5hMv+Twlm3lBqLOFYU/Imz7ND0kS3lgCutXmgxD KZ46ZLf+7VQxnO4hkM/EQVALzUNoxMfFZsSoWPsnya3uuNBRhJQBjcxWvbjdd2lYfFno D7d/zzIADyVxFejboK/WpVWcK9H8+fTwmCEClTaWYB7nAa152DyAHY/yYYbeUHc2RLEf n/NmSlPkPnBDJea86Mk4vnPEXw9GXNPJW4jdL7o+J09kMfdYWBnTPn61nILk4D2rwDq1 hoiw== 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:references:in-reply-to:message-id:date:cc:to:from :subject:arc-authentication-results; bh=izqk14FOJ+aQp56PLCT+AiLw1X7XO8UnLYuEhFWptJI=; b=WXzlpMKR0fF7YevL59SzVaZr9ISkrxSyBvBOm0FBY09GSF1pPVS5kcCFoXLw6r8DJt froAqBbmkTzosVOVMNjwtoPeyi4C1fmj8k475bf7/HlVVE3RRf9wLuCFv6pNRckAQtjl MiNLBT4ZIyg41bde3SHyBIHNtRo4tJV0p038SxUs+bPpJ2NVC9ntTUhrzfNI7n1gYs1e J9CkxVjTxiZGi80RZ3FZssqU2Wqe5IB2bJhgprfCqWk68mlyTcaltqTSohIwtly4FA0x jaOuvt/svvn6T9h7cbjV/18RHPAKncT8l1KXzyTTmwh8fhvn38z+aZOhREqe8Y7KGHS0 jRbw== 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 c5-v6si14690741pll.449.2018.05.03.17.17.06; Thu, 03 May 2018 17:17:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751674AbeEDAQq (ORCPT + 99 others); Thu, 3 May 2018 20:16:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:31676 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbeEDAQo (ORCPT ); Thu, 3 May 2018 20:16:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 17:16:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,360,1520924400"; d="scan'208";a="42944386" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by fmsmga002.fm.intel.com with ESMTP; 03 May 2018 17:16:43 -0700 Subject: [PATCH v3 8/9] pmem: switch to copy_to_iter_mcsafe() From: Dan Williams To: linux-nvdimm@lists.01.org Cc: hch@lst.de, linux-kernel@vger.kernel.org, tony.luck@intel.com, linux-fsdevel@vger.kernel.org Date: Thu, 03 May 2018 17:06:47 -0700 Message-ID: <152539240757.31796.14176557943876214824.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <152539236455.31796.7516599166555186700.stgit@dwillia2-desk3.amr.corp.intel.com> References: <152539236455.31796.7516599166555186700.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-2-gc94f 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 Use the machine check safe version of copy_to_iter() for the ->copy_to_iter() operation published by the pmem driver. Signed-off-by: Dan Williams --- drivers/nvdimm/pmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 1b8ab48365de..6d3da8c92868 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -267,7 +267,7 @@ static size_t pmem_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, static size_t pmem_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, size_t bytes, struct iov_iter *i) { - return copy_to_iter(addr, bytes, i); + return copy_to_iter_mcsafe(addr, bytes, i); } static const struct dax_operations pmem_dax_ops = {