{"action":"created","comment":{"url":"https://api.github.com/repos/openucx/ucx/pulls/comments/55120264","id":55120264,"diff_hunk":"@@ -385,6 +415,87 @@ void ucp_worker_progress(ucp_worker_h worker)\n     ucs_assert(--worker->inprogress == 0);\n }\n \n+ucs_status_t ucp_worker_get_efd(ucp_worker_h worker, int *fd)\n+{\n+    unsigned i;\n+    ucs_status_t status;\n+    ucp_context_h context = worker->context;\n+    struct epoll_event event;\n+    event.events = EPOLLIN | EPOLLET;\n+\n+    if (worker->wakeup_efd != -1) {\n+        *fd = worker->wakeup_efd;\n+        return UCS_OK;\n+    }\n+\n+    *fd = epoll_create(context->num_tls);\n+    if (*fd == -1) {\n+        return UCS_ERR_IO_ERROR;\n+    }\n+\n+    for (i = 0; i < context->num_tls; i++) {\n+        if (worker->iface_wakeups[i]) {\n+            status = uct_wakeup_efd_get(worker->iface_wakeups[i],\n+                    &event.data.fd);\n+            if (status != UCS_OK) {\n+                close(*fd);\n+                return status;\n+            }\n+\n+            if (epoll_ctl(*fd, EPOLL_CTL_ADD, event.data.fd, &event))\n+            {\n+                close(*fd);\n+                return status;","path":"src/ucp/core/ucp_worker.c","position":126,"original_position":126,"commit_id":"e277a2bd0d48fbb275e8f192ff2a70537e4c2506","original_commit_id":"e277a2bd0d48fbb275e8f192ff2a70537e4c2506","user":{"login":"yosefe","id":2255631,"avatar_url":"https://avatars.githubusercontent.com/u/2255631?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefe","html_url":"https://github.com/yosefe","followers_url":"https://api.github.com/users/yosefe/followers","following_url":"https://api.github.com/users/yosefe/following{/other_user}","gists_url":"https://api.github.com/users/yosefe/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefe/subscriptions","organizations_url":"https://api.github.com/users/yosefe/orgs","repos_url":"https://api.github.com/users/yosefe/repos","events_url":"https://api.github.com/users/yosefe/events{/privacy}","received_events_url":"https://api.github.com/users/yosefe/received_events","type":"User","site_admin":false},"body":"status is uninitialized here","created_at":"2016-03-05T12:14:28Z","updated_at":"2016-03-05T12:14:28Z","html_url":"https://github.com/openucx/ucx/pull/569#discussion_r55120264","pull_request_url":"https://api.github.com/repos/openucx/ucx/pulls/569","_links":{"self":{"href":"https://api.github.com/repos/openucx/ucx/pulls/comments/55120264"},"html":{"href":"https://github.com/openucx/ucx/pull/569#discussion_r55120264"},"pull_request":{"href":"https://api.github.com/repos/openucx/ucx/pulls/569"}}},"pull_request":{"url":"https://api.github.com/repos/openucx/ucx/pulls/569","id":56751608,"html_url":"https://github.com/openucx/ucx/pull/569","diff_url":"https://github.com/openucx/ucx/pull/569.diff","patch_url":"https://github.com/openucx/ucx/pull/569.patch","issue_url":"https://api.github.com/repos/openucx/ucx/issues/569","number":569,"state":"open","locked":false,"title":"UCT/IB: Interrupt notification support","user":{"login":"alex--m","id":8146151,"avatar_url":"https://avatars.githubusercontent.com/u/8146151?v=3","gravatar_id":"","url":"https://api.github.com/users/alex--m","html_url":"https://github.com/alex--m","followers_url":"https://api.github.com/users/alex--m/followers","following_url":"https://api.github.com/users/alex--m/following{/other_user}","gists_url":"https://api.github.com/users/alex--m/gists{/gist_id}","starred_url":"https://api.github.com/users/alex--m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex--m/subscriptions","organizations_url":"https://api.github.com/users/alex--m/orgs","repos_url":"https://api.github.com/users/alex--m/repos","events_url":"https://api.github.com/users/alex--m/events{/privacy}","received_events_url":"https://api.github.com/users/alex--m/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-21T13:52:59Z","updated_at":"2016-03-05T12:14:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51d87ae93dd9285f5bd03db494715d69a1d05cc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openucx/ucx/pulls/569/commits","review_comments_url":"https://api.github.com/repos/openucx/ucx/pulls/569/comments","review_comment_url":"https://api.github.com/repos/openucx/ucx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openucx/ucx/issues/569/comments","statuses_url":"https://api.github.com/repos/openucx/ucx/statuses/e277a2bd0d48fbb275e8f192ff2a70537e4c2506","head":{"label":"alex--m:interrupt_notification_fixed","ref":"interrupt_notification_fixed","sha":"e277a2bd0d48fbb275e8f192ff2a70537e4c2506","user":{"login":"alex--m","id":8146151,"avatar_url":"https://avatars.githubusercontent.com/u/8146151?v=3","gravatar_id":"","url":"https://api.github.com/users/alex--m","html_url":"https://github.com/alex--m","followers_url":"https://api.github.com/users/alex--m/followers","following_url":"https://api.github.com/users/alex--m/following{/other_user}","gists_url":"https://api.github.com/users/alex--m/gists{/gist_id}","starred_url":"https://api.github.com/users/alex--m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex--m/subscriptions","organizations_url":"https://api.github.com/users/alex--m/orgs","repos_url":"https://api.github.com/users/alex--m/repos","events_url":"https://api.github.com/users/alex--m/events{/privacy}","received_events_url":"https://api.github.com/users/alex--m/received_events","type":"User","site_admin":false},"repo":{"id":49874463,"name":"ucx","full_name":"alex--m/ucx","owner":{"login":"alex--m","id":8146151,"avatar_url":"https://avatars.githubusercontent.com/u/8146151?v=3","gravatar_id":"","url":"https://api.github.com/users/alex--m","html_url":"https://github.com/alex--m","followers_url":"https://api.github.com/users/alex--m/followers","following_url":"https://api.github.com/users/alex--m/following{/other_user}","gists_url":"https://api.github.com/users/alex--m/gists{/gist_id}","starred_url":"https://api.github.com/users/alex--m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex--m/subscriptions","organizations_url":"https://api.github.com/users/alex--m/orgs","repos_url":"https://api.github.com/users/alex--m/repos","events_url":"https://api.github.com/users/alex--m/events{/privacy}","received_events_url":"https://api.github.com/users/alex--m/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alex--m/ucx","description":"Unified Communication X  (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group): ","fork":true,"url":"https://api.github.com/repos/alex--m/ucx","forks_url":"https://api.github.com/repos/alex--m/ucx/forks","keys_url":"https://api.github.com/repos/alex--m/ucx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex--m/ucx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex--m/ucx/teams","hooks_url":"https://api.github.com/repos/alex--m/ucx/hooks","issue_events_url":"https://api.github.com/repos/alex--m/ucx/issues/events{/number}","events_url":"https://api.github.com/repos/alex--m/ucx/events","assignees_url":"https://api.github.com/repos/alex--m/ucx/assignees{/user}","branches_url":"https://api.github.com/repos/alex--m/ucx/branches{/branch}","tags_url":"https://api.github.com/repos/alex--m/ucx/tags","blobs_url":"https://api.github.com/repos/alex--m/ucx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex--m/ucx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex--m/ucx/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex--m/ucx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex--m/ucx/statuses/{sha}","languages_url":"https://api.github.com/repos/alex--m/ucx/languages","stargazers_url":"https://api.github.com/repos/alex--m/ucx/stargazers","contributors_url":"https://api.github.com/repos/alex--m/ucx/contributors","subscribers_url":"https://api.github.com/repos/alex--m/ucx/subscribers","subscription_url":"https://api.github.com/repos/alex--m/ucx/subscription","commits_url":"https://api.github.com/repos/alex--m/ucx/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex--m/ucx/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex--m/ucx/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex--m/ucx/issues/comments{/number}","contents_url":"https://api.github.com/repos/alex--m/ucx/contents/{+path}","compare_url":"https://api.github.com/repos/alex--m/ucx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex--m/ucx/merges","archive_url":"https://api.github.com/repos/alex--m/ucx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex--m/ucx/downloads","issues_url":"https://api.github.com/repos/alex--m/ucx/issues{/number}","pulls_url":"https://api.github.com/repos/alex--m/ucx/pulls{/number}","milestones_url":"https://api.github.com/repos/alex--m/ucx/milestones{/number}","notifications_url":"https://api.github.com/repos/alex--m/ucx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex--m/ucx/labels{/name}","releases_url":"https://api.github.com/repos/alex--m/ucx/releases{/id}","deployments_url":"https://api.github.com/repos/alex--m/ucx/deployments","created_at":"2016-01-18T12:11:10Z","updated_at":"2016-01-18T12:11:12Z","pushed_at":"2016-03-03T15:44:31Z","git_url":"git://github.com/alex--m/ucx.git","ssh_url":"git@github.com:alex--m/ucx.git","clone_url":"https://github.com/alex--m/ucx.git","svn_url":"https://github.com/alex--m/ucx","homepage":" http://www.openucx.org","size":4406,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openucx:master","ref":"master","sha":"882e0ee49b1daa78d14f1ad29c8c808c4c994d2c","user":{"login":"openucx","id":13118737,"avatar_url":"https://avatars.githubusercontent.com/u/13118737?v=3","gravatar_id":"","url":"https://api.github.com/users/openucx","html_url":"https://github.com/openucx","followers_url":"https://api.github.com/users/openucx/followers","following_url":"https://api.github.com/users/openucx/following{/other_user}","gists_url":"https://api.github.com/users/openucx/gists{/gist_id}","starred_url":"https://api.github.com/users/openucx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openucx/subscriptions","organizations_url":"https://api.github.com/users/openucx/orgs","repos_url":"https://api.github.com/users/openucx/repos","events_url":"https://api.github.com/users/openucx/events{/privacy}","received_events_url":"https://api.github.com/users/openucx/received_events","type":"Organization","site_admin":false},"repo":{"id":25379390,"name":"ucx","full_name":"openucx/ucx","owner":{"login":"openucx","id":13118737,"avatar_url":"https://avatars.githubusercontent.com/u/13118737?v=3","gravatar_id":"","url":"https://api.github.com/users/openucx","html_url":"https://github.com/openucx","followers_url":"https://api.github.com/users/openucx/followers","following_url":"https://api.github.com/users/openucx/following{/other_user}","gists_url":"https://api.github.com/users/openucx/gists{/gist_id}","starred_url":"https://api.github.com/users/openucx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openucx/subscriptions","organizations_url":"https://api.github.com/users/openucx/orgs","repos_url":"https://api.github.com/users/openucx/repos","events_url":"https://api.github.com/users/openucx/events{/privacy}","received_events_url":"https://api.github.com/users/openucx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openucx/ucx","description":"Unified Communication X  (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group): ","fork":false,"url":"https://api.github.com/repos/openucx/ucx","forks_url":"https://api.github.com/repos/openucx/ucx/forks","keys_url":"https://api.github.com/repos/openucx/ucx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openucx/ucx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openucx/ucx/teams","hooks_url":"https://api.github.com/repos/openucx/ucx/hooks","issue_events_url":"https://api.github.com/repos/openucx/ucx/issues/events{/number}","events_url":"https://api.github.com/repos/openucx/ucx/events","assignees_url":"https://api.github.com/repos/openucx/ucx/assignees{/user}","branches_url":"https://api.github.com/repos/openucx/ucx/branches{/branch}","tags_url":"https://api.github.com/repos/openucx/ucx/tags","blobs_url":"https://api.github.com/repos/openucx/ucx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openucx/ucx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openucx/ucx/git/refs{/sha}","trees_url":"https://api.github.com/repos/openucx/ucx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openucx/ucx/statuses/{sha}","languages_url":"https://api.github.com/repos/openucx/ucx/languages","stargazers_url":"https://api.github.com/repos/openucx/ucx/stargazers","contributors_url":"https://api.github.com/repos/openucx/ucx/contributors","subscribers_url":"https://api.github.com/repos/openucx/ucx/subscribers","subscription_url":"https://api.github.com/repos/openucx/ucx/subscription","commits_url":"https://api.github.com/repos/openucx/ucx/commits{/sha}","git_commits_url":"https://api.github.com/repos/openucx/ucx/git/commits{/sha}","comments_url":"https://api.github.com/repos/openucx/ucx/comments{/number}","issue_comment_url":"https://api.github.com/repos/openucx/ucx/issues/comments{/number}","contents_url":"https://api.github.com/repos/openucx/ucx/contents/{+path}","compare_url":"https://api.github.com/repos/openucx/ucx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openucx/ucx/merges","archive_url":"https://api.github.com/repos/openucx/ucx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openucx/ucx/downloads","issues_url":"https://api.github.com/repos/openucx/ucx/issues{/number}","pulls_url":"https://api.github.com/repos/openucx/ucx/pulls{/number}","milestones_url":"https://api.github.com/repos/openucx/ucx/milestones{/number}","notifications_url":"https://api.github.com/repos/openucx/ucx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openucx/ucx/labels{/name}","releases_url":"https://api.github.com/repos/openucx/ucx/releases{/id}","deployments_url":"https://api.github.com/repos/openucx/ucx/deployments","created_at":"2014-10-17T22:17:24Z","updated_at":"2016-02-01T08:04:14Z","pushed_at":"2016-03-05T11:08:00Z","git_url":"git://github.com/openucx/ucx.git","ssh_url":"git@github.com:openucx/ucx.git","clone_url":"https://github.com/openucx/ucx.git","svn_url":"https://github.com/openucx/ucx","homepage":" http://www.openucx.org","size":6158,"stargazers_count":27,"watchers_count":27,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":52,"forks":27,"open_issues":52,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openucx/ucx/pulls/569"},"html":{"href":"https://github.com/openucx/ucx/pull/569"},"issue":{"href":"https://api.github.com/repos/openucx/ucx/issues/569"},"comments":{"href":"https://api.github.com/repos/openucx/ucx/issues/569/comments"},"review_comments":{"href":"https://api.github.com/repos/openucx/ucx/pulls/569/comments"},"review_comment":{"href":"https://api.github.com/repos/openucx/ucx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openucx/ucx/pulls/569/commits"},"statuses":{"href":"https://api.github.com/repos/openucx/ucx/statuses/e277a2bd0d48fbb275e8f192ff2a70537e4c2506"}}}}