]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for methods to the OSD subsystem. Each object type has a
authorJamie Gritton <jamie@FreeBSD.org>
Sat, 21 Feb 2009 11:15:38 +0000 (11:15 +0000)
committerJamie Gritton <jamie@FreeBSD.org>
Sat, 21 Feb 2009 11:15:38 +0000 (11:15 +0000)
commit613042491b8b0e587fee55757ef575b155980c6e
tree0bbef0cc4b4641eea7fce090eee1e3b2a9ee2bcc
parent4dedfc44e7a5a889754fdcc360fc63116d54d624
Add support for methods to the OSD subsystem.  Each object type has a
predefined set of methods, which are set in osd_register() and called
via osd_call().  Currently, no methods are defined, though prison
objects will have some in the future.

Expand the locking from a single per-type mutex to three different kinds
of locks (four if you include the requirement that the container
(e.g. prison) be locked when getting/setting data).  This clears up one
existing issue, as well as others added by the method support.

Approved by: bz (mentor)
sys/kern/kern_osd.c
sys/sys/osd.h