提交 83595db0 编写于 作者: A Al Viro 提交者: Mike Marshall

orangefs: ->poll() is only called between successful ->open() and ->release()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 fb6d2526
......@@ -966,14 +966,12 @@ static unsigned int orangefs_devreq_poll(struct file *file,
{
int poll_revent_mask = 0;
if (open_access_count == 1) {
poll_wait(file, &orangefs_request_list_waitq, poll_table);
poll_wait(file, &orangefs_request_list_waitq, poll_table);
spin_lock(&orangefs_request_list_lock);
if (!list_empty(&orangefs_request_list))
poll_revent_mask |= POLL_IN;
spin_unlock(&orangefs_request_list_lock);
}
spin_lock(&orangefs_request_list_lock);
if (!list_empty(&orangefs_request_list))
poll_revent_mask |= POLL_IN;
spin_unlock(&orangefs_request_list_lock);
return poll_revent_mask;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册