cvs commit: src/sys/dev/glxsb glxsb.c glxsb_hash.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Aug 11 08:41:17 UTC 2008
pjd 2008-08-11 08:41:08 UTC
FreeBSD src repository
Modified files:
sys/dev/glxsb glxsb.c glxsb_hash.c
Log:
SVN rev 181593 on 2008-08-11 08:41:08Z by pjd
- Convert sc_sessions_mtx mutex to a rwlock, so in the fast path
(glxsb_process()) we don't block others when looking for our session.
- Simplify the loop responsible for freeing sessions on detach.
- No need to drop a lock around malloc(M_NOWAIT).
- Treat ses_used as boolean.
- Avoid gotos where possible.
- Various style(9) fixes.
Reviewed by: philip, Patrick Lamaiziere <patfbsd at davenulle.org>
Revision Changes Path
1.2 +69 -86 src/sys/dev/glxsb/glxsb.c
1.2 +1 -2 src/sys/dev/glxsb/glxsb_hash.c
More information about the cvs-src
mailing list