Received: by 10.192.165.148 with SMTP id m20csp1427519imm; Wed, 2 May 2018 22:10:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo4JQAsi9UgaygiiPqRPas8rrngvDXdQw5uzMBPLeBbB4RfGMUb3v+Uokwjeep3lQNDomTD X-Received: by 10.98.204.8 with SMTP id a8mr21682990pfg.219.1525324222772; Wed, 02 May 2018 22:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525324222; cv=none; d=google.com; s=arc-20160816; b=LNrj8HEkJTxjTITRv28s+Bhp0SGiCA9njD7GNL+OZmvfUHDxfWgHUjkyNpOgYlRH+l vl1RLs/HxNCILNS+EGOm0qxoV4IGxeKeJk79JRH/XbbOpyLyjU6OJ4Uvs2pAqawchs2J Oz2WyITfxD14Hukf4I2Hcl36dzVzAhp4NZ8wH14x5t5tv5T46Ph8Xs1PAlGZ8IEtmBbL 86UO48Ux3CQm+hvHOOuheoBGnvOtfP2dHF/Yx5lhqRIGY/COrfjYPSmFUzUSCfnAtePc ePBJKnWiRrujgvrtrWOulyxX8IC66xzqiE2k2EXR1KhjbdYfktJdCAkYQAGj3gN1lID7 y2BQ== 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=MHyx3Q8pukBZpekorgqFA3FSIApWRhFSTTluOK1QqndLeXEuI7oi/PON6L9oZ3NbLM 8te9YVZk0eVPLfB13onXgjYsOVb/qUwhErdn5Z6xMqr43iwJ9pKx7ejlvfUXRDUU2BMA VbGBpwEYor7yKW9AbTrxH6YSGQ2dBeGc83MVCsaI2gZUzHQCpxEjABqqPoBkvPTmllo1 hbcPWzTQXik9tILujOHlWkxACsvODpBgJm4NzrsB1xXrBJ0yBqszpUEaHErnN4nP4aTc oWPnEPPle5A6uSHUX+1qLaYlBcIUOQOvZUuz0zuj1tgtlNtdlqTH1T4N7dy7lB+xu16w o76A== 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 64-v6si12686322plb.574.2018.05.02.22.10.08; Wed, 02 May 2018 22:10:22 -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 S1752354AbeECFJa (ORCPT + 99 others); Thu, 3 May 2018 01:09:30 -0400 Received: from mga03.intel.com ([134.134.136.65]:32056 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbeECFJZ (ORCPT ); Thu, 3 May 2018 01:09:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 May 2018 22:09:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,356,1520924400"; d="scan'208";a="221240755" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga005.jf.intel.com with ESMTP; 02 May 2018 22:09:24 -0700 Subject: [PATCH v2 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: Wed, 02 May 2018 21:59:28 -0700 Message-ID: <152532356857.17218.433171196433337889.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <152532351517.17218.3583455156840230837.stgit@dwillia2-desk3.amr.corp.intel.com> References: <152532351517.17218.3583455156840230837.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 = {