ntirpc
ntirpc copied to clipboard
Add RETRY in svc_destroy_it to prevent destroying uninitialized xprt
During showdown, ganesha tries to desstroy all xprts, but then crashes because ganesha assert a xprt to be destroyed must have xp_ops initialized already. But in svc_vc_ncreatef and svc_fd_ncreatef, we don't have lock to protect the allocation and initialization part to be together. Shutdown could happen in between, in this case, above assertion will fail Instead of directly asserting, RETRY with some sleep to wait for the initialization of xp_ops to be done
Please help review
I think we need to do something different to synchronize shutfown.
That looks good to me now, but I would like @dang to review also.