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

[Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Photo]     [Yosemite Info]    [Yosemite Photos]    [POF Sucks]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux