Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae89254d authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

SUNRPC: Fix compile on non-x86



current_task appears to be x86-only, oops.

Let's just delete this check entirely:

Any developer that adds a new user without setting rq_task will get a
crash the first time they test it.  I also don't think there are
normally any important locks held here, and I can't see any other reason
why killing a server thread would bring the whole box down.

So the effort to fail gracefully here looks like overkill.

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 983c6844 "SUNRPC: get rid of the request wait queue"
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 18c01ab3
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -771,10 +771,6 @@ int svc_recv(struct svc_rqst *rqstp, long timeout)
			"svc_recv: service %p, transport not NULL!\n",
			"svc_recv: service %p, transport not NULL!\n",
			 rqstp);
			 rqstp);


	/* Make sure the task pointer is set! */
	if (WARN_ON_ONCE(!rqstp->rq_task))
		rqstp->rq_task = current_task;

	err = svc_alloc_arg(rqstp);
	err = svc_alloc_arg(rqstp);
	if (err)
	if (err)
		return err;
		return err;