{"action":"created","issue":{"url":"https://api.github.com/repos/OpenXT/v4v/issues/5","labels_url":"https://api.github.com/repos/OpenXT/v4v/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/OpenXT/v4v/issues/5/comments","events_url":"https://api.github.com/repos/OpenXT/v4v/issues/5/events","html_url":"https://github.com/OpenXT/v4v/pull/5","id":105211074,"number":5,"title":"[v4v] Fix module refcnt.","user":{"login":"eric-ch","id":8698568,"avatar_url":"https://avatars.githubusercontent.com/u/8698568?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-ch","html_url":"https://github.com/eric-ch","followers_url":"https://api.github.com/users/eric-ch/followers","following_url":"https://api.github.com/users/eric-ch/following{/other_user}","gists_url":"https://api.github.com/users/eric-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-ch/subscriptions","organizations_url":"https://api.github.com/users/eric-ch/orgs","repos_url":"https://api.github.com/users/eric-ch/repos","events_url":"https://api.github.com/users/eric-ch/events{/privacy}","received_events_url":"https://api.github.com/users/eric-ch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-07T12:55:35Z","updated_at":"2015-09-10T11:29:56Z","closed_at":"2015-09-10T11:29:56Z","pull_request":{"url":"https://api.github.com/repos/OpenXT/v4v/pulls/5","html_url":"https://github.com/OpenXT/v4v/pull/5","diff_url":"https://github.com/OpenXT/v4v/pull/5.diff","patch_url":"https://github.com/OpenXT/v4v/pull/5.patch"},"body":"V4VIOCACCEPT allocates a new struct file without bumping the refcnt for\r\nthe module. The struct file is assigned v4v_fops_stream and a fd is\r\nreturned to userspace. When this fd is closed, the release() callback in\r\nv4v_fops_stream file operations is called and the kernel will decrement\r\nthe module refcnt.\r\nTo maintain refcnt coherency, it has to be incremented when the struct\r\nfile is created, so when the fds are closed by userland, the refcnt does\r\nnot get decremented twice where is was only incremented once. Anyway,\r\nreturning a new fd should increase the refcnt.\r\n"},"comment":{"url":"https://api.github.com/repos/OpenXT/v4v/issues/comments/139209251","html_url":"https://github.com/OpenXT/v4v/pull/5#issuecomment-139209251","issue_url":"https://api.github.com/repos/OpenXT/v4v/issues/5","id":139209251,"user":{"login":"eric-ch","id":8698568,"avatar_url":"https://avatars.githubusercontent.com/u/8698568?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-ch","html_url":"https://github.com/eric-ch","followers_url":"https://api.github.com/users/eric-ch/followers","following_url":"https://api.github.com/users/eric-ch/following{/other_user}","gists_url":"https://api.github.com/users/eric-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-ch/subscriptions","organizations_url":"https://api.github.com/users/eric-ch/orgs","repos_url":"https://api.github.com/users/eric-ch/repos","events_url":"https://api.github.com/users/eric-ch/events{/privacy}","received_events_url":"https://api.github.com/users/eric-ch/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T11:29:56Z","updated_at":"2015-09-10T11:29:56Z","body":"Sounds good."}}