MP safe extended attributes

Christian S.J. Peron csjp at FreeBSD.org
Fri Sep 23 16:30:47 GMT 2005


All.

I've done some work which pushes giant down into extended attribute operations.
If the filesystem is marked MP safe (which UFS currently is), we do not pickup
giant. This should make extended attribute operations a bit more snappy.

Since a lot of trustedbsd's object based security is handled through extended
attributes I thought this would be a good place to find beta testers :)

Here is the patch:

http://people.freebsd.org/~csjp/vfs_syscalls.c.1127492385.diff

Summary:
-Tag extended attribute system calls as being MP safe so the syscall handler
 does not pickup Giant
-Set namei flag as being MPSAFE so if the file system is not MP safe we pickup
 giant. Since UFS is the only extended attribute consumer this should eliminate
 the aquisition of giant for all extended attribute operations.

-- 
Christian S.J. Peron
csjp at FreeBSD.ORG
FreeBSD Committer
FreeBSD Security Team
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-discuss" in the body of the message



More information about the trustedbsd-discuss mailing list