]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0f0b2db9ea943289a3ce91382e860096103eb10
tree2e90fa3820d7c3e2642fae6f617f131115052fc6
parentb138ebae43e976cd0a52f525404c3f8ed3ff3418
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