orangefs: ->poll() doesn't need spinlock

not just for list_empty()...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Al Viro 2016-01-19 12:07:49 -05:00 committed by Mike Marshall
parent 8016387ce7
commit 90e54e36c9
1 changed files with 0 additions and 2 deletions

View File

@ -941,10 +941,8 @@ static unsigned int orangefs_devreq_poll(struct file *file,
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;
}