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>
This commit is contained in:
committed by
Tom Haynes
parent
2176bf4269
commit
180bb5ec06
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user