vfs_gpfs: Avoid calling gpfs_is_offline on every i/o
authorVolker Lendecke <vl@samba.org>
Wed, 2 Sep 2015 11:20:08 +0000 (13:20 +0200)
committerChristof Schmitt <cs@samba.org>
Fri, 4 Sep 2015 23:50:09 +0000 (01:50 +0200)
commit2a8b21e5ae7e90f63c2fb87a7c747d8d1fc2c01e
tree05c2a766b14a2d524d4594d8f22e630c3550e3d3
parent53a8cc7c0df37d68270a9e1877c14d40e96abf53
vfs_gpfs: Avoid calling gpfs_is_offline on every i/o

Asks gpfs as long as a file is offline. Once it was reported online once,
we'll not ask anymore.  This assumes that while we have a file open it
won't be migrated away. This might not *always* be true, but probably
close enough. And as long as we don't have a proper notification mechanism
and as long as polling is too expensive, this seems like a good strategy.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Sat Sep  5 01:50:09 CEST 2015 on sn-devel-104
source3/modules/vfs_gpfs.c