]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f85b4f346371149d92458817a0eb6c1f7e74fd0
treedf6f4429ec4d1aeffcdced295f86410c9368a3c0
parent6f6c8ca3aa7d98777d60fe29751c97720d10e821
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