From: Al Viro Date: Tue, 19 Jan 2016 17:07:49 +0000 (-0500) Subject: orangefs: ->poll() doesn't need spinlock X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=90e54e36c95536a476db0fe01daa556d647aca2c;p=linux-beck.git orangefs: ->poll() doesn't need spinlock not just for list_empty()... Signed-off-by: Al Viro Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c index 456b5189f772..b58fab2a9c26 100644 --- a/fs/orangefs/devorangefs-req.c +++ b/fs/orangefs/devorangefs-req.c @@ -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; }