Re: [PATCH 08/13] SUNRPC: Add API to acquire source address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chuck Lever [chuck.lever@xxxxxxxxxx] wrote:
> +	rcu_read_lock();
> +	xprt = rcu_dereference(clnt->cl_xprt);
> +	salen = xprt->addrlen;
> +	memcpy(sap, &xprt->addr, salen);
> +	net = get_net(xprt->xprt_net);
> +	rcu_read_unlock();

Did I miss a patch that made cl_xprt go away unless accessed under RCU?

Thanks, Malahal.

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux