Skip to content

umount hangs on sec=krb5,i,p mounts

Chuck Lever linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2SUNRPC: Set SOFTCONN when destroying GSS contextsnet/sunrpc/auth_gss/auth_gss.c net/sunrpc/clnt.c+5 -70 replies
2/2sunrpc: Ensure signalled RPC tasks exitinclude/linux/sunrpc/sched.h net/sunrpc/sched.c+8 -90 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC3 0/2] umount hangs on sec=krb5,i,p mounts

I've dug into this a little more. Posting these two patches just as conversation pieces.

The spinning NULL task at umount time, it turns out, is the kernel's attempt to send GSS DESTROY_CONTEXT. This NULL is triggered just as the RPC client has killed all tasks. The spinning rpc_task will run until a soft timeout occurs, and then the umount unhangs.

Maybe set a shutdown flag in the client, and cause early FSM steps to fail if this flag is set? Or should the client skip context destruction if this flag is set?

Any other thoughts?

---

Chuck Lever (2):
SUNRPC: Set SOFTCONN when destroying GSS contexts
sunrpc: Ensure signalled RPC tasks exit

--
Chuck Lever