Also, just noticed this...why 2.1? Matt
----- Original Message ----- > From: "Matt Benjamin" <[email protected]> > To: "arun kumar" <[email protected]> > Cc: [email protected] > Sent: Wednesday, March 30, 2016 12:12:41 PM > Subject: Re: [Nfs-ganesha-devel] Return value of consume_ev_sig_nb() not > handled ? > > Hi Arun, > > The effect is to wake any thread blocking in epoll_wait(). > > Matt > > ----- Original Message ----- > > From: "arun kumar" <[email protected]> > > To: [email protected] > > Sent: Wednesday, March 30, 2016 3:46:19 AM > > Subject: [Nfs-ganesha-devel] Return value of consume_ev_sig_nb() not > > handled ? > > > > > > > > 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 > > > > -- > Matt Benjamin > Red Hat, Inc. > 315 West Huron Street, Suite 140A > Ann Arbor, Michigan 48103 > > http://www.redhat.com/en/technologies/storage > > tel. 734-707-0660 > fax. 734-769-8938 > cel. 734-216-5309 > -- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309 ------------------------------------------------------------------------------ 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
