diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-11-25 19:17:15 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-02 17:42:58 +0100 |
commit | 06946c6a3d8b511a65e4f8b1f44dfd01e37f752d (patch) | |
tree | 960f57144942846c44bb398a4151954685fb8b12 /fs/nfs/flexfilelayout/flexfilelayout.h | |
parent | pNFS/flexfiles: Don't attempt to send layoutstats if there are no entries (diff) | |
download | linux-06946c6a3d8b511a65e4f8b1f44dfd01e37f752d.tar.xz linux-06946c6a3d8b511a65e4f8b1f44dfd01e37f752d.zip |
pNFS/flexfiles: Only send layoutstats updates for mirrors that were updated
If there have been no reads or writes to a given mirror since the last
layoutstats update, then don't resend the same data.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.h')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.h b/fs/nfs/flexfilelayout/flexfilelayout.h index 3ee0c9fcea76..09f292e3a4ad 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.h +++ b/fs/nfs/flexfilelayout/flexfilelayout.h @@ -81,12 +81,15 @@ struct nfs4_ff_layout_mirror { struct rpc_cred __rcu *rw_cred; atomic_t ref; spinlock_t lock; + unsigned long flags; struct nfs4_ff_layoutstat read_stat; struct nfs4_ff_layoutstat write_stat; ktime_t start_time; u32 report_interval; }; +#define NFS4_FF_MIRROR_STAT_AVAIL (0) + struct nfs4_ff_layout_segment { struct pnfs_layout_segment generic_hdr; u64 stripe_unit; |