Re: locking the super_block in ext2fs

From: Stephen C. Tweedie (sct@redhat.com)
Date: Wed May 03 2000 - 11:36:03 EST


Hi,

On Sun, Apr 30, 2000 at 06:17:33PM +0300, root wrote:
>
> i'm trying to write a block allocator which gonna co-exists with the
> ext2fs module.
> my question is how can i lock the super_block to avoid conflicits on
> SMP machines ?

You don't, in general. The superblock lock protects data structures
while processes sleep for I/O. It has nothing to do with SMP, because
currently the relevant ext2 code all runs with the big kernel lock
anyway, and is thus never reentered.

--Stephen

-
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 : Sun May 07 2000 - 21:00:12 EST