On Wed, Jun 19, 2024 at 01:39:34PM -0400, cel@xxxxxxxxxx wrote: > From: Chuck Lever <chuck.lever@xxxxxxxxxx> > > nfs4_get_device_info() frequently requests more than a few pages > when provisioning a nfs4_deviceid_node object. Hmm. Looks like nfs4_get_device_info uses max_resp_sz to size the buffer. In theory the max_deviceinfo_size field in struct pnfs_layoutdriver_type caps it, but that isn't actually set anywhere at all. I guess we can't really do anything to size this better, but at least for blocklayout where we usually get a single device or a handful of stripes this is quite an overallocation. And all that is just to pass it to xdr_init_decode_pages, which is using it basically as a scratchpad.