lkml.org 
[lkml]   [1999]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SMP race in page IO list

On Sat, 17 Apr 1999, Patrik Rak wrote:

> I think that there is a SMP race in the put_pio_request() and
> get_pio_request() in mm/filemap.c. The PIO list may get corrupted if
> several processors access it at once.
>
> May be someone might like to add a spinlock there (or tell me that there
> is no race because of <some smart explanation here>).

it's protected by the kernel lock [just watch how kpiod does an initial
lock_kernel()] ... or can you see any code path which uses
get_pio_request() without acquiring the kernel lock?

-- mingo


-
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:51    [W:0.079 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site