lkml.org 
[lkml]   [1999]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Patch] shm bug introduced with pagecache in 2.3.11
Date
From
> /* 3 asm instructions */
> void release_exclusive(struct rw_mutex* rwm)
> {
> read_unlock(&rwm->rwl);
> if(rwm->wake_me_up) {
> rwm->wake_me_up = 0;
> wake_up(&rwm->wait);
> }
> }

That can race with another acquire surely. Suppose they set rmw->wake_me_up
and we then continue our release and clear it. Actually why do you want the
wake_me_up field ?


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:1.255 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site