]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2 fix async copy reboot recovery
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 6 Dec 2018 16:10:36 +0000 (11:10 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Jan 2019 17:05:19 +0000 (12:05 -0500)
commita438b35e55d34e487ae34c5ab130418facfd24ca
treea66fb85cee40e4c0f9ee40229e2ced2328fa15c5
parent5f7f385e924df5b077937b095dbdb2de7cb283b2
NFSv4.2 fix async copy reboot recovery

Original commit (7aa9bf7760f5 "NFS recover from destination server
reboot for copies") used memcmp() and then it was changed to use
nfs4_stateid_match_other() but that function returns opposite of
memcmp. As the result, recovery can't find the copy leading
to copy hanging.

Fixes: 6aa319c9c3d4 ("NFSv4: Split out NFS v4.2 copy completion functions")
Fixes: 2c72d9edb61d ("NFS: Split out the body of nfs4_reclaim_open_state")
Signed-of-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4state.c