On Mon, Apr 06, 2020 at 09:44:26PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > > If is_closed is set, and the event list is empty, then read() will return > -EIO without blocking. After setting is_closed in > ib_uverbs_free_event_queue(), we do trigger a wake_up on the poll_wait, > but the fops->poll() function does not check it, so poll will continue to > sleep on an empty list. > > Fixes: 14e23bd6d221 ("RDMA/core: Fix locking in ib_uverbs_event_read") > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/uverbs_main.c | 2 ++ > 1 file changed, 2 insertions(+) Applied to for-next Jason