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

!1806 SUNRPC: Add cond_resched() at the appropriate point in __rpc_execute()

parents e85c5093 83342145
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -896,8 +896,10 @@ static void __rpc_execute(struct rpc_task *task)
		/*
		 * Lockless check for whether task is sleeping or not.
		 */
		if (!RPC_IS_QUEUED(task))
		if (!RPC_IS_QUEUED(task)) {
			cond_resched();
			continue;
		}

		/*
		 * Signalled tasks should exit rather than sleep.