Unverified Commit ffd82d7a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15265 NFSD: fix hang in nfsd4_shutdown_callback

parents 5f0c5566 ba8ca427
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1410,8 +1410,11 @@ nfsd4_run_cb_work(struct work_struct *work)
		nfsd4_process_cb_update(cb);

	clnt = clp->cl_cb_client;
	if (!clnt) {
		/* Callback channel broken, or client killed; give up: */
	if (!clnt || clp->cl_state == NFSD4_COURTESY) {
		/*
		 * Callback channel broken, client killed or
		 * nfs4_client in courtesy state; give up.
		 */
		nfsd41_destroy_cb(cb);
		return;
	}