CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2012/04/30 21:43:24
Modified files: sys/sys : file.h sys/kern : kern_descrip.c kern_sysctl.c lib/libkvm : kvm_file2.c Log message: Eliminate the f_usecount ref count in struct file; instead of sleeping at the top of closef() until all in-progress calls finish, just do the advisory locking bits required of close() by POSIX and let whichever thread has the last reference do the call to the file's fo_close() method and the final cleanup. lots of discussion with deraadt@ and others; worked out with and ok krw@