OSDN Git Service

SUNRPC: Move initialization of rq_stime
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Jun 2023 14:13:33 +0000 (10:13 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 17 Jun 2023 17:18:06 +0000 (13:18 -0400)
commitf8335a212ac1495da3e9d98ff46c4bcd6a359011
tree7636c6d8b901a794593b095c89f0ad18da9074c0
parent5581cf8efc3863e3831a3ee50854e823ec618df8
SUNRPC: Move initialization of rq_stime

Micro-optimization: Call ktime_get() only when ->xpo_recvfrom() has
given us a full RPC message to process. rq_stime isn't used
otherwise, so this avoids pointless work.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svc_xprt.c