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

Commit 90e54e36 authored by Al Viro's avatar Al Viro Committed by Mike Marshall
Browse files

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



not just for list_empty()...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 8016387c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}