Skip to content

nfs41: return correct errors on callback replays version 2

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6nfs41: fix wrong error on callback header xdr overflowfs/nfs/callback_xdr.c+18 -100 replies
2/6nfs41: directly encode back channel errorfs/nfs/callback_xdr.c+4 -10 replies
3/6nfs41: remove uneeded checks in callback processingfs/nfs/callback_xdr.c+2 -30 replies
4/6nfs41: prepare for back channel drcfs/nfs/callback_proc.c+9 -100 replies
5/6nfs41: back channel drc minimal implementationfs/nfs/callback_proc.c fs/nfs/callback_xdr.c+32 -120 replies
6/6nfs41: implement cb_recall_slotfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c +3 more+88 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] nfs41: return correct errors on callback replays version 2

Responded to Tronds comments.

The first three patches clean up callback processing 0001-nfs41-fix-wrong-error-on-callback-hdr-xdr-overflow.patch 0002-nfs41-directly-encode-back-channel-error.patch 0003-nfs41-remove-uneeded-checks-in-callback-processing.patch

These next two implement correct error returns for v4.1 callback replays. Since our back channel has a ca_maxrequestsize_cached = 0, a replay with cachethis set to true results in a NFS4ERR_TOO_BIG_TO_CACHE error. This code is set up to do a real DRC.
A replay with cachethis set to false returns a NFS4ERR_RETRY_UNCACHED_REP error.
0004-nfs41-prepare-for-back-channel-drc.patch 0005-nfs41-back-channel-drc-minimal-implementation.patch

ADDED:
0006 nfs41:-implement-cb_recall_slot.patch
The fore channel session is drained, then the new highest_slot is set.

TODO: The callback code currently returns NFS4ERR_RESOURCE on all xdr overflows. This is correct for v4.0, incorrect for v4.1.

Testing:

Modified nfsv4.1 pynfs server tested cb_recall replays with the cb_sequence cachethis set to False and to True.

Modified nfs4.1 pyNFS server sends CB_RECALL_SLOT call during the Connectathon basic big file test which uses all available slots.

Connectathon tests pass.

-->Andy