Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83595db0 authored by Al Viro's avatar Al Viro Committed by Mike Marshall
Browse files

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

parent fb6d2526
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -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);

	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;
}