]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4/pNFS: Do not fail I/O when we fail to allocate the pNFS layout
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 14 May 2022 14:08:11 +0000 (10:08 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2022 16:53:33 +0000 (12:53 -0400)
commit2821c3aae013f48b39bc46f9b3f98a65797a5cf6
treeb8ab79df808886ec9de54e8d00b50c08b181d758
parent14b52a6758f837554ce1db1c812c9f937b0403a7
NFSv4/pNFS: Do not fail I/O when we fail to allocate the pNFS layout

Commit 5d7b378fa4a4 caused pnfs_update_layout() to stop returning ENOMEM
when the memory allocation fails, and hence causes it to fall back to
trying to do I/O through the MDS. There is no guarantee that this will
fare any better. If we're failing the pNFS layout allocation, then we
should just redirty the page and retry later.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Fixes: 5d7b378fa4a4 ("pnfs: refactor send_layoutget")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c