pnfs: allow splicing pre-encoded pages into the layoutcommit args
Currently there is no XDR buffer space allocated for the per-layout driver layoutcommit payload, which leads to server buffer overflows in the blocklayout driver even under simple workloads. As we can't do per-layout sizes for XDR operations we'll have to splice a previously encoded list of pages into the XDR stream, similar to how we handle ACL buffers. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:

committed by
Trond Myklebust

parent
47abadefad
commit
5f919c9f10
@@ -279,6 +279,9 @@ struct nfs4_layoutcommit_args {
|
||||
__u64 lastbytewritten;
|
||||
struct inode *inode;
|
||||
const u32 *bitmask;
|
||||
size_t layoutupdate_len;
|
||||
struct page *layoutupdate_page;
|
||||
struct page **layoutupdate_pages;
|
||||
};
|
||||
|
||||
struct nfs4_layoutcommit_res {
|
||||
|
Reference in New Issue
Block a user