lkml.org 
[lkml]   [2017]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v4 11/13] xen/pvcalls: implement poll command
    From
    Date

    >
    > +static unsigned int pvcalls_front_poll_passive(struct file *file,
    > + struct pvcalls_bedata *bedata,
    > + struct sock_mapping *map,
    > + poll_table *wait)
    > +{
    > + int notify, req_id, ret;
    > + struct xen_pvcalls_request *req;
    > +
    > + if (test_bit(PVCALLS_FLAG_ACCEPT_INFLIGHT,
    > + (void *)&map->passive.flags)) {
    > + uint32_t req_id = READ_ONCE(map->passive.inflight_req_id);
    > +
    > + if (req_id != PVCALLS_INVALID_ID &&
    > + READ_ONCE(bedata->rsp[req_id].req_id) == req_id)
    > + return POLLIN | POLLRDNORM;


    Do we need to clear PVCALLS_FLAG_ACCEPT_INFLIGHT? Or do we expect a
    (subsequent?) accept() to do that?

    -boris



    > +
    > + poll_wait(file, &map->passive.inflight_accept_req, wait);
    > + return 0;
    > + }
    > +

    \
     
     \ /
      Last update: 2017-09-23 00:28    [W:7.132 / U:0.444 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site