svn commit: r204470 - head/sys/fs/msdosfs

Kostik Belousov kostikbel at gmail.com
Sun Feb 28 18:07:31 UTC 2010


On Sun, Feb 28, 2010 at 07:00:10PM +0100, Attilio Rao wrote:
> 2010/2/28 Konstantin Belousov <kib at freebsd.org>:
> > Author: kib
> > Date: Sun Feb 28 17:13:07 2010
> > New Revision: 204470
> > URL: http://svn.freebsd.org/changeset/base/204470
> >
> > Log:
> >  Add per-mountpoint lockmgr lock for msdosfs. It is intended to be used
> >  as fat bitmap lock and to replace global mutex protecting fileno rbtree.
> 
> Looking at this patch, it seems you can safely use a sx lock here and
> I would prefer that as we don't want to encourage more lockmgr to get
> in.
> If you are concerned about writer starvation in any way here,
> probabilly the right solution is to implement it in sx and remove
> lockmgr also from the export code.

There is no write starvation in the msdosfs case, because all locks
are acquired exclusively (this is not true for the export list locking,
and write starvation is real issue there).

I used lockmgr mostly because it is fs code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20100228/34c3419e/attachment.pgp


More information about the svn-src-head mailing list