Bad SMP race in getblk()

From: Mark Hemment (markhe@veritas.com)
Date: Wed Aug 02 2000 - 06:33:42 EST


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/



This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:08 EST