cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2008-08-21 Thread John Baldwin
jhb 2008-08-22 01:16:16 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern kern_sx.c sys/sys sx.h Log: SVN rev 181977 on 2008-08-22 01:16:16Z by jhb Implement sx_sleep() on 6.x. This is not an MFC as sx_sleep() in

cvs commit: src/sys/kern kern_sx.c subr_lock.c subr_witness.c src/sys/sys _lock.h _lockmgr.h _mutex.h _rwlock.h _sx.h lock.h lockmgr.h mutex.h rwlock.h

2008-05-15 Thread Attilio Rao
attilio 2008-05-15 20:10:07 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c subr_lock.c subr_witness.c sys/sys _lock.h _lockmgr.h _mutex.h _rwlock.h _sx.h lock.h lockmgr.h mutex.h rwlock.h Log: - Embed the recu

cvs commit: src/sys/kern kern_sx.c

2007-10-02 Thread Pawel Jakub Dawidek
pjd 2007-10-02 14:48:48 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c Log: Fix sx_try_slock(), so it only fails when there is an exclusive owner. Before that fix, it was possible for the function to fail if number of sharers changes between 'x

cvs commit: src/sys/kern kern_sx.c

2007-09-27 Thread John Baldwin
jhb 2007-09-27 18:08:09 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern kern_sx.c Log: Use lock_init() and lock_destroy(). Revision ChangesPath 1.25.2.8 +2 -13 src/sys/kern/kern_sx.c __

Re: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-09-10 Thread Alfred Perlstein
Thanks for noticing, it wasn't something I intended at all! * Kip Macy <[EMAIL PROTECTED]> [070910 17:36] wrote: > Thanks. > > -Kip > > On 9/10/07, Alfred Perlstein <[EMAIL PROTECTED]> wrote: > > alfred 2007-09-10 23:43:52 UTC > > > > FreeBSD src repository > > > > Modified files:

Re: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-09-10 Thread Kip Macy
Thanks. -Kip On 9/10/07, Alfred Perlstein <[EMAIL PROTECTED]> wrote: > alfred 2007-09-10 23:43:52 UTC > > FreeBSD src repository > > Modified files:(Branch: RELENG_6) > sys/kern kern_sx.c > sys/sys sx.h > Log: > FreeBSD 7 has a macro that co

cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-09-10 Thread Alfred Perlstein
alfred 2007-09-10 23:43:52 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern kern_sx.c sys/sys sx.h Log: FreeBSD 7 has a macro that converts calls to sx_init -> sx_init_flags, however FreeBSD 6 needs this as a function

cvs commit: src/sys/kern kern_sx.c subr_turnstile.c

2007-09-05 Thread Alfred Perlstein
alfred 2007-09-05 17:38:28 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern kern_sx.c subr_turnstile.c Log: Unbreak "options DDB" breakage from previous commit. Revision ChangesPath 1.25.2.6 +0 -1 src/sys/kern/kern_sx.

cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h src/sys/vm vm_map.c

2007-05-31 Thread Attilio Rao
attilio 2007-05-31 09:14:48 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h sys/vm vm_map.c Log: Add functions sx_xlock_sig() and sx_slock_sig(). These functions are intended to do the same actions of s

cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-05-29 Thread Attilio Rao
attilio 2007-05-29 19:46:37 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h Log: style(9) fixes for sx locks. Approved by: jeff (mentor) Revision ChangesPath 1.52 +2 -2 src/sys/kern/kern_sx.c 1.

cvs commit: src/sys/kern kern_sx.c

2007-05-29 Thread Attilio Rao
attilio 2007-05-29 19:34:32 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c Log: Add a small fix for lock profiling in sx locks. "0" cannot be a correct value since when the function is entered at least one shared holder must be present and since we

cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-05-19 Thread John Baldwin
jhb 2007-05-19 20:18:12 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h Log: Expose sx_xholder() as a public macro. It returns a pointer to the thread that holds the current exclusive lock, or NULL if no thread holds

cvs commit: src/sys/kern kern_sx.c

2007-05-19 Thread John Baldwin
jhb 2007-05-19 18:34:25 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c Log: Oops, didn't include SX_ADAPTIVESPIN in the list of valid flags for the assert in sx_init_flags(). Submitted by: attilio Revision ChangesPath 1.48

Re: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-05-19 Thread Attilio Rao
2007/5/19, John Baldwin <[EMAIL PROTECTED]>: jhb 2007-05-19 16:35:27 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h Log: Add a new SX_RECURSE flag to make support for recursive exclusive locks conditional. By default, sx(9

cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-05-19 Thread John Baldwin
jhb 2007-05-19 16:35:27 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h Log: Add a new SX_RECURSE flag to make support for recursive exclusive locks conditional. By default, sx(9) locks are back to not supporting rec

cvs commit: src/sys/kern kern_sx.c

2007-05-18 Thread John Baldwin
jhb 2007-05-18 15:05:41 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c Log: Fix a comment. Revision ChangesPath 1.46 +2 -2 src/sys/kern/kern_sx.c ___ cvs-all@freebsd.org mailing list

cvs commit: src/sys/kern kern_sx.c

2007-04-03 Thread Kip Macy
kmacy 2007-04-04 00:11:23 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c Log: fix typo Revision ChangesPath 1.43 +1 -1 src/sys/kern/kern_sx.c ___ cvs-all@freebsd.org mailing list http:/

cvs commit: src/sys/kern kern_sx.c

2007-04-03 Thread Kip Macy
kmacy 2007-04-04 00:01:05 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c Log: style fixes and make sure that the lock is treated as released in the sharers == 0 case not that this is somewhat racy because a new sharer can come in while we're updat

cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h

2007-04-03 Thread Kip Macy
kmacy 2007-04-03 22:58:21 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h Log: Fixes to sx for newsx - fix recursed case and move out of inline Submitted by: Attilio Rao <[EMAIL PROTECTED]> Revision Changes