lkml.org 
[lkml]   [2011]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: v3.0: Weird kernel log message when resuming avout NMI received
From
Date
On Mon, 2011-08-01 at 15:21 +0400, Cyrill Gorcunov wrote:
> > mutex_lock(&swhash->hlist_mutex);
> > - if (swhash->hlist_refcount > 0) {
> > + if (swhash->hlist_refcount > 0 && !swhash->swevent_hlist) {
>
> Should not there be rcu_dereference(swhash->swevent_hlist)?

swhash->hlist_mutex is the modifier lock for that rcu use and should
thus serialize things sufficiently.



\
 
 \ /
  Last update: 2011-08-01 14:11    [W:0.099 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site