[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <92f2c56f-223e-9e47-12eb-6ff0c3d183d1@oracle.com>
Date: Tue, 24 Oct 2017 10:02:21 -0400
From: Boris Ostrovsky <boris.ostrovsky@...cle.com>
To: Stefano Stabellini <sstabellini@...nel.org>
Cc: xen-devel@...ts.xen.org, linux-kernel@...r.kernel.org,
jgross@...e.com, Stefano Stabellini <stefano@...reto.com>
Subject: Re: [PATCH v5 11/13] xen/pvcalls: implement poll command
On 10/23/2017 07:06 PM, Stefano Stabellini wrote:
> On Tue, 17 Oct 2017, Boris Ostrovsky wrote:
>>> +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;
>>
>> Same READ_ONCE() question as for an earlier patch.
> Same answer :-)
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@...cle.com>
>
>
>>> +
>>> + poll_wait(file, &map->passive.inflight_accept_req, wait);
>>> + return 0;
>>> + }
>>> +
Powered by blists - more mailing lists