The following patchset applies on top of my current linux-next branch, and contains updates to allow the client to piggyback layoutstats in the flexfiles layoutreturn (as per spec). This is mainly useful when running workloads that do I/O on lots of small or medium sized files, which are rarely kept open for long enough to send a standalone layoutstat. Trond Myklebust (10): pNFS/flexfiles: Don't attempt to send layoutstats if there are no entries pNFS/flexfiles: Only send layoutstats updates for mirrors that were updated NFSv4: Add a generic structure for managing layout-private information pNFS: Allow layout drivers to manage private data in struct nfs4_layoutreturn pNFS: Add a layoutreturn callback to performa layout-private setup pNFS/flexfiles: Refactor encoding of the layoutreturn payload pNFS/flexfiles: Clean up layoutstats NFS: Fix up read of mirror stats pNFS/flexfiles: Minor refactoring before adding iostats to layoutreturn pNFS/flexfiles: Support sending layoutstats in layoutreturn fs/nfs/flexfilelayout/flexfilelayout.c | 236 ++++++++++++++++++++++-------- fs/nfs/flexfilelayout/flexfilelayout.h | 20 ++- fs/nfs/flexfilelayout/flexfilelayoutdev.c | 78 ++++++++-- fs/nfs/nfs42proc.c | 9 +- fs/nfs/nfs42xdr.c | 5 +- fs/nfs/nfs4proc.c | 6 + fs/nfs/nfs4xdr.c | 4 +- fs/nfs/pnfs.c | 15 +- fs/nfs/pnfs.h | 2 +- include/linux/nfs_xdr.h | 19 ++- 10 files changed, 306 insertions(+), 88 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html