diff options
| author | Jason Gunthorpe <[email protected]> | 2020-04-06 21:44:26 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-04-14 15:56:34 -0300 |
| commit | eb356e6dc15a30af604f052cd0e170450193c254 (patch) | |
| tree | 6eaff8f7bbf704c6a0e6f4b034a9c86b95077459 /tools/perf/scripts/python | |
| parent | cf26deff9036cd3270af562dbec545239e5c7f07 (diff) | |
RDMA/uverbs: Make the event_queue fds return POLLERR when disassociated
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")
Link: https://lore.kernel.org/r/0-v1-ace813388969+48859-uverbs_poll_fix%[email protected]
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions