Re: superblock lock SMP safe ?

Alexander Viro (viro@math.psu.edu)
Tue, 15 Jun 1999 04:46:03 -0400 (EDT)


On Tue, 15 Jun 1999, V Ganesh wrote:

> isn't there a race here ? shouldn't it be more like lock_buffer ?
> while (!test_and_set_bit(0, &sb->s_lock))
> __wait_on_super(sb);
>
> or is it that all paths using lock_super already have the kernel lock ?

Yes.

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