]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Subsequent READDIR calls should carry non-zero cookieverifier
authorNagendra S Tomar <natomar@microsoft.com>
Tue, 16 Mar 2021 10:25:14 +0000 (10:25 +0000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Apr 2021 13:04:20 +0000 (09:04 -0400)
commite32c819fb8d0c0d1ddacba04cc6f89b01fb1c3f8
treebe81083b660274d9f64504bbbcec0d24526ade12
parent51f3c9e8eff23a89a9ab6c40b3e8daeeed5afe13
nfs: Subsequent READDIR calls should carry non-zero cookieverifier

If the loop in nfs_readdir_xdr_to_array() runs more than once, subsequent
READDIR RPCs may wrongly carry a zero cookie verifier and non-zero cookie.
Make sure subsequent calls to READDIR carry the cookie verifier returned
by the first call.

Signed-off-by: Nagendra S Tomar <natomar@microsoft.com>
Fixes: 39718ec83b07 ("NFS: Improve handling of directory verifiers")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c