flexfiles: use per-mirror specified stateid for IO
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Wed, 21 Nov 2018 11:25:41 +0000 (12:25 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 22 Nov 2018 19:04:55 +0000 (14:04 -0500)
commitbb21ce0ad227b69ec0f83279297ee44232105d96
tree2e90fa3820d7c3e2642fae6f617f131115052fc6
parent99f2c55591fb5c1b536263970d98c2ebc2089906
flexfiles: use per-mirror specified stateid for IO

rfc8435 says:

  For tight coupling, ffds_stateid provides the stateid to be used by
  the client to access the file.

However current implementation replaces per-mirror provided stateid with
by open or lock stateid.

Ensure that per-mirror stateid is used by ff_layout_write_prepare_v4 and
nfs4_ff_layout_prepare_ds.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Rick Macklem <rmacklem@uoguelph.ca>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayout.h
fs/nfs/flexfilelayout/flexfilelayoutdev.c