pNFS: Use the standard I/O stateid when calling LAYOUTGET
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 11 Sep 2017 17:09:37 +0000 (13:09 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 12 Sep 2017 02:19:00 +0000 (22:19 -0400)
commit70d2f7b1ea19b7e43e36ccc63496f45f9908134d
treee4ae5571a942caa20bbe4a9119d34944839feffb
parent1bd5d6d08ea7ed0794c8a3908383d6d6fc202cdd
pNFS: Use the standard I/O stateid when calling LAYOUTGET

Instead of having a private method for copying the open/delegation stateid,
use the same call that is used for standard I/O through the MDS.

Note that this means we transmit the stateid with a zero seqid, avoiding
issues with NFS4ERR_OLD_STATEID.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c