Hi,

I am currently trying to understand the RPC mechanism of NFS Ganesha (using
v2.1).

In svc_rqst.c file, A socket pair is created per event channel (for UDP,
TCP etc.)
But I can't really find out what is the use of this socket pair.

A new event signaled ( via *ev_sig()* function) whenever there are events
for the socket epoll via*epoll_ctl()* call. *ev_sig()* just writes the data
into the socket pair (writer end).
On the other end, *consume_ev_sig_nb()* triggered whenever there are events
in the socket pair's receiver end.
But the caller don't process returned value from consume_ev_sig_nb() call,
It simply ignores it.

** (void)consume_ev_sig_nb(sr_rec->sv[1]);

So my question is what is the need for this socket pair in svc_rqst.c file,
when the event/signal consumer is not doing any operation based on the
event.


Thanks,

Arun
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to