diff options
author | Weston Andros Adamson <dros@primarydata.com> | 2014-09-10 21:48:01 +0200 |
---|---|---|
committer | Tom Haynes <loghyr@primarydata.com> | 2015-02-03 20:06:44 +0100 |
commit | 180bb5ec06ce3a95dccc751fbf6bf11d3003da98 (patch) | |
tree | e73fcf03e30e0bdb6b2e97767782fa53a0912ff7 /fs/nfs/filelayout | |
parent | nfs: introduce pg_cleanup op for pgio descriptors (diff) | |
download | linux-180bb5ec06ce3a95dccc751fbf6bf11d3003da98.tar.xz linux-180bb5ec06ce3a95dccc751fbf6bf11d3003da98.zip |
pnfs: release lseg in pnfs_generic_pg_cleanup
This is needed to support mirrored writes - the first write can't just
trash the lseg, we need to keep it around until all mirrors have
written.
Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Diffstat (limited to 'fs/nfs/filelayout')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index 5d2eadc65167..2af32fc39d60 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c @@ -933,12 +933,14 @@ static const struct nfs_pageio_ops filelayout_pg_read_ops = { .pg_init = filelayout_pg_init_read, .pg_test = filelayout_pg_test, .pg_doio = pnfs_generic_pg_readpages, + .pg_cleanup = pnfs_generic_pg_cleanup, }; static const struct nfs_pageio_ops filelayout_pg_write_ops = { .pg_init = filelayout_pg_init_write, .pg_test = filelayout_pg_test, .pg_doio = pnfs_generic_pg_writepages, + .pg_cleanup = pnfs_generic_pg_cleanup, }; static u32 select_bucket_index(struct nfs4_filelayout_segment *fl, u32 j) |