On Thu, 11 Jan 2024 19:35:23 +0000, Miod Vallat wrote: > Yes. Unfortunately NEEDQ and DISCONN may be both set, so we still need > to check for DISCONN here before NEEDQ. > > Or the whole block could become > > if (NEEDQ set and not DISCONN set) > nfsrv_rcv block > if (DISCONN set) > nfsrv_zapsock
Or just: if (DISCONN set) nfsrv_zapsock if (NEEDQ set) nfsrv_rcv block since nfsrv_zapsock will clear slp->ns_flag. - todd