pNFS/files: Ensure pNFS allocation modes are consistent with nfsiod
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 21 Mar 2022 21:27:14 +0000 (17:27 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Mar 2022 19:52:56 +0000 (15:52 -0400)
commita245832aaa9930f0ea91527cbd70521722b89313
tree0ee2e12696f118554a95f978039f927893640c6f
parent3e5f151e94c190c31a240d9458677caab4f6c44e
pNFS/files: Ensure pNFS allocation modes are consistent with nfsiod

Ensure that pNFS file commit allocations in rpciod/nfsiod callbacks can
fail in low memory mode, so that the threads don't block and loop
forever.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/filelayout/filelayout.c