lkml.org 
[lkml]   [1997]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Super block locking
> lock_super() and unlock_super() are used very heteregeneously in the
> different implementation of fs.
>
> Some fs (like isofs, minix) read/write super block fields (such as s_dev,
> s_op) _without_ taking the lock, while other always take the lock when
> accessing super block members.
Strangely, fs/super.c doesn't use super block locking in read_super() to
access s_dev, s_flags, s_rd_only, s_dirt, and s_type

So when should we use this lock?

Regis "HPReg" Duchesne - Engineering Student at ***** ******** *****
www http://www.via.ecp.fr/~regis/
(O o) I use Linux & 3Com (1135 KB/s over 10Mb/s ethernet)
--.oOO--(_)--OOo.-----------------------------------------------------------


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.051 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site