Messages in this thread | | | Date | Wed, 2 Aug 2000 12:33:42 +0100 (BST) | From | Mark Hemment <> | Subject | Bad 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/
| |