NFS handle COPY reply CB_OFFLOAD call race
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 9 Jul 2018 19:13:32 +0000 (15:13 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 9 Aug 2018 16:56:39 +0000 (12:56 -0400)
commitbc0c9079b48ddcf1f8a6e1aaa277288b263c78d8
treedf6f4429ec4d1aeffcdced295f86410c9368a3c0
parent62164f317972fcd36590578888f33a1994dda519
NFS handle COPY reply CB_OFFLOAD call race

It's possible that server replies back with CB_OFFLOAD call and
COPY reply at the same time such that client will process
CB_OFFLOAD before reply to COPY. For that keep a list of pending
callback stateids received and then before waiting on completion
check the pending list.

Cleanup any pending copies on the client shutdown.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/callback_proc.c
fs/nfs/nfs42proc.c
fs/nfs/nfs4client.c
include/linux/nfs_fs_sb.h