Re: Bad SMP race in getblk()

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Aug 02 2000 - 06:54:38 EST


Mark, David,

is this the same problem that Steve Dodd noticed and fixed? Here is his
patch.

Regards,
Tigran

On Wed, 2 Aug 2000, Mark Hemment wrote:

> 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/
>



-
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