lkml.org 
[lkml]   [2000]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectBad SMP race in getblk()
David, all,

Just noticed this.

getblk() (fs/buffer.c) can now be called without the BLK being held.
After searching the hash table (get_hash_table()), a free buffer-head
can be claimed off the freelist and inserted into the hash-table without
re-checking the hash-table (the hash-table lock is dropped between the
original search and new insert). This gives serious problems on SMP.

Mark


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