Received: from HIOEXCMBX03-PRD.hq.netapp.com (10.122.105.36) by
 HIOEXCMBX05-PRD.hq.netapp.com (10.122.105.38) with Microsoft SMTP Server
 (TLS) id 15.0.1156.6 via Mailbox Transport; Wed, 18 May 2016 17:58:52 -0700
Received: from VMWEXCHTS03-PRD.hq.netapp.com (10.122.105.31) by
 hioexcmbx03-prd.hq.netapp.com (10.122.105.36) with Microsoft SMTP Server
 (TLS) id 15.0.1156.6; Wed, 18 May 2016 17:58:52 -0700
Received: from mx141.netapp.com (10.120.60.89) by
 VMWEXCHTS03-PRD.hq.netapp.com (10.122.105.31) with Microsoft SMTP Server
 (TLS) id 15.0.1156.6; Wed, 18 May 2016 17:58:52 -0700
IronPort-PHdr: 9a23:jNioZhHgzPW3JVKlFjP7SJ1GYnF86YWxBRYc798ds5kLTJ75r8WwAkXT6L1XgUPTWs2DsrQf27uQ6PmrAzJIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/nhqbpotaJPU1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXEGDeV4X0QGkAHkR5FCRXe8FmuQo32tCe8s/t+3CSQINbqZb4lQnK/7qAtThi+2wkdMDtsy33aksx9iuphpw6huBF7x8aAe4+PHPF3eKmbdM4HSixGRMkXXjEXUdD0VJcGE+dUZbUQlIL6vVZb6ELmXQQ=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CBAADtDj1XcEOQFmddHAGEbqVPAwEGlCIBDYFoDReFeoFBOBQBAQEBAQEBAREBCg0JByMvgi2CFQECASoTBgEBNwErAwECCjRADhOILrB+hSgBAQWNDQEBAQEGAgEcCIQbgUKMHEuCRogBhxaJGY4WCo8aj0keAQGCO4IGKjKIBgEBAQ
X-IPAS-Result: A0CBAADtDj1XcEOQFmddHAGEbqVPAwEGlCIBDYFoDReFeoFBOBQBAQEBAQEBAREBCg0JByMvgi2CFQECASoTBgEBNwErAwECCjRADhOILrB+hSgBAQWNDQEBAQEGAgEcCIQbgUKMHEuCRogBhxaJGY4WCo8aj0keAQGCO4IGKjKIBgEBAQ
X-IronPort-AV: E=Sophos;i="5.26,331,1459839600"; 
   d="scan'208";a="119429408"
X-Amp-Result: Clean
X-Amp-File-Uploaded: False
X-SBRS: 1.2
Received: from ozlabs.org ([103.22.144.67])
  by mx141.netapp.com with ESMTP/TLS/ADH-AES256-GCM-SHA384; 18 May 2016 17:58:52 -0700
Received: from authenticated.ozlabs.org (localhost [127.0.0.1])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by ozlabs.org (Postfix) with ESMTPSA id 3r9CPQ17BSz9t5x;
	Thu, 19 May 2016 10:58:50 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au;
	s=201601; t=1463619530;
	bh=fvCpX6Uejolqru70CgziS6bwVDyArRvJQ6i9Xl6OFYw=;
	h=Date:From:To:Cc:Subject:From;
	b=HbKywusH2AyaxU+QeoFoUOpnzGs4BUUQOC2fb1Vwr3xVyL4RPhNLagMy8p0KEG1ha
	 iD4UE/J+5xlLLhHjUFVxpZ0O4Sis0j9SaD+KCtruOr3F8IGPNj/XPN6+P9stWEcYBp
	 ZU/kgTa5XARbDQ4+4ohg6y4req8UBEZVCHwfWE74=
Date: Thu, 19 May 2016 10:58:47 +1000
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
CC: <linux-next@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Anna
 Schumaker <Anna.Schumaker@netapp.com>, Al Viro <viro@zeniv.linux.org.uk>,
	Linus <torvalds@linux-foundation.org>
Subject: linux-next: build failure after merge of the nfs tree
Message-ID: <20160519105847.2b05c81f@canb.auug.org.au>
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Return-Path: sfr@canb.auug.org.au
X-MS-Exchange-Organization-Network-Message-Id: e6ff265c-3206-47e3-ad24-08d37f80bee6
X-MS-Exchange-Organization-AVStamp-Enterprise: 1.0
X-MS-Exchange-Organization-AuthSource: VMWEXCHTS03-PRD.hq.netapp.com
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0

Hi Trond,

After merging the nfs tree, today's linux-next build (x86_64 allmodconfig)
failed like this:

In file included from include/linux/fs.h:19:0,
                 from fs/nfs/nfs42proc.c:4:
fs/nfs/nfs42proc.c: In function 'nfs42_proc_copy':
fs/nfs/nfs42proc.c:212:30: error: 'struct inode' has no member named 'i_mutex'
   mutex_lock(&file_inode(dst)->i_mutex);
                              ^
include/linux/mutex.h:146:44: note: in definition of macro 'mutex_lock'
 #define mutex_lock(lock) mutex_lock_nested(lock, 0)
                                            ^
fs/nfs/nfs42proc.c:215:32: error: 'struct inode' has no member named 'i_mutex'
   mutex_unlock(&file_inode(dst)->i_mutex);
                                ^   

Caused by commit

  2e72448b07dc ("NFS: Add COPY nfs operation")

interacting with commit

  9902af79c01a ("parallel lookups: actual switch to rwsem")

from Linus' tree.

I applied the following merge fix patch - you will need to send this to
Linus when you ask him to merge your tree.

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 19 May 2016 10:50:26 +1000
Subject: [PATCH] nfs: fix for i_mutex to i_rwsem change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 fs/nfs/nfs42proc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index 20c44d1209dc..aa03ed09ba06 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -209,10 +209,10 @@ ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src,
 	dst_exception.state = dst_lock->open_context->state;
 
 	do {
-		mutex_lock(&file_inode(dst)->i_mutex);
+		inode_lock(file_inode(dst));
 		err = _nfs42_proc_copy(src, pos_src, src_lock,
 				       dst, pos_dst, dst_lock, count);
-		mutex_unlock(&file_inode(dst)->i_mutex);
+		inode_unlock(file_inode(dst));
 
 		if (err == -ENOTSUPP) {
 			err = -EOPNOTSUPP;
-- 
2.7.0

-- 
Cheers,
Stephen Rothwell
