Re: FS-specified FSID for non-device based filesystems?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> BKL is dropped when you give up CPU.  It is reacquired when you get scheduled
> again.  It's not a mutex; it's not a spinlock.  The right way to look at it
> is the following:
> 	* task has dumbness counter; lock_kernel() increments it,
> unlock_kernel() decrements.
> 	* at most one dumb task can have CPU at any given time
> 	* dumb tasks are not preempted
> That's it.  You are only protected against other dumb tasks and *only* as long
> as you don't block.  Blocking won't make you any less dumb, so the same
> warranties resume once you do get CPU again.  However, anything might have
> happened while you were blocked.
> 
> On UP boxen with PREEMPT disabled it's simply a no-op - it's all about
> emulating that situation.

I see, thanks.  I'll fix the race.

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux