CVS log for src/sys/kern/kern_lockf.c
Up to [FreeBSD] / src / sys / kern
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.74.4.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.74.4.1: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Nov 7 06:44:47 2011 UTC (3 months ago) by ed
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +1 -1 lines
SVN rev 227293 on 2011-11-07 06:44:47Z by ed Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. This means that their use is restricted to a single C file.
Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.57.2.11.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.57.2.11: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.11: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.74.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.74.2.1: preferred, colored; next MAIN 1.74.4.1: preferred, colored
Changes since revision 1.74.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.74.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 3 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.74.2.1: preferred, colored; next MAIN 1.74.4.1: preferred, colored
Changes since revision 1.74.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.57.2.11.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (23 months, 4 weeks ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.57.2.11: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.11: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.74.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.74.2.1: preferred, colored; next MAIN 1.74.4.1: preferred, colored
Changes since revision 1.74.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.57.2.11: download - view: text, markup, annotated - select for diffs
Thu Jul 9 09:12:16 2009 UTC (2 years, 7 months ago) by kib
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.57.2.10: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.10: +10 -1 lines
SVN rev 195485 on 2009-07-09 09:12:16Z by kib MFC r194993: In lf_iteratelocks_vnode, increment state->ls_threads around iterating of the vnode advisory lock list. This prevents deallocation of state while inside the loop.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Jun 25 18:54:56 2009 UTC (2 years, 7 months ago) by kib
Branches: MAIN
CVS tags: RELENG_9_BP, RELENG_8_BP
Branch point for: RELENG_9, RELENG_8
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +10 -1 lines
SVN rev 194993 on 2009-06-25 18:54:56Z by kib In lf_iteratelocks_vnode, increment state->ls_threads around iterating of the vnode advisory lock list. This prevents deallocation of state while inside the loop. Reported and tested by: pho MFC after: 2 weeks
Revision 1.57.2.10: download - view: text, markup, annotated - select for diffs
Tue Jun 23 10:55:21 2009 UTC (2 years, 7 months ago) by kib
Branches: RELENG_7
Diff to: previous 1.57.2.9: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.9: +15 -2 lines
SVN rev 194695 on 2009-06-23 10:55:21Z by kib MFC r192685: The advisory lock may be activated or activated and removed during the sleep waiting for conditions when the lock may be granted. To prevent lf_setlock() from accessing possibly freed memory, add reference counting to the struct lockf_entry. Bump refcount around the sleep. Make lf_free_lock() return non-zero when structure was freed, and use this after the sleep to return EINTR to the caller. The error code might need a clarification, but we cannot return success to usermode, since the lock is not owned anymore.
Revision 1.57.2.9: download - view: text, markup, annotated - select for diffs
Tue Jun 23 10:49:55 2009 UTC (2 years, 7 months ago) by kib
Branches: RELENG_7
Diff to: previous 1.57.2.8: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.8: +3 -1 lines
SVN rev 194694 on 2009-06-23 10:49:55Z by kib MFC r192684: In lf_purgelocks(), assert that state->ls_pending is empty after we weeded out threads, and clean ls_active instead of ls_pending.
Revision 1.57.2.8: download - view: text, markup, annotated - select for diffs
Tue Jun 23 10:47:42 2009 UTC (2 years, 7 months ago) by kib
Branches: RELENG_7
Diff to: previous 1.57.2.7: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.7: +20 -2 lines
SVN rev 194693 on 2009-06-23 10:47:42Z by kib MFC r192683: In lf_advlockasync(), recheck for doomed vnode after the state->ls_lock is acquired. In the lf_purgelocks(), assert that vnode is doomed and set *statep to NULL before clearing ls_pending list. Otherwise, we allow for the thread executing lf_advlockasync() to put new pending entry after state->ls_lock is dropped in lf_purgelocks(). MFC r193931: Do not leak the state->ls_lock after VI_DOOMED check introduced in the r192683. MFC r194356: Decrement state->ls_threads when vnode appeared to be doomed.
Revision 1.57.2.7: download - view: text, markup, annotated - select for diffs
Tue Jun 23 10:41:38 2009 UTC (2 years, 7 months ago) by kib
Branches: RELENG_7
Diff to: previous 1.57.2.6: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.6: +1 -1 lines
SVN rev 194692 on 2009-06-23 10:41:38Z by kib MFC r192681: Replace the while statement with the if for clarity. The loop body cannot be executed more then once.
Revision 1.57.2.6: download - view: text, markup, annotated - select for diffs
Tue Jun 23 10:37:28 2009 UTC (2 years, 7 months ago) by kib
Branches: RELENG_7
Diff to: previous 1.57.2.5: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.5: +1 -2 lines
SVN rev 194691 on 2009-06-23 10:37:28Z by kib MFC r185358 (by ganbold): Remove unused variable.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed Jun 17 12:43:04 2009 UTC (2 years, 7 months ago) by kib
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -0 lines
SVN rev 194356 on 2009-06-17 12:43:04Z by kib Decrement state->ls_threads when vnode appeared to be doomed. Reported and tested by: pho
Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Jun 10 16:17:38 2009 UTC (2 years, 8 months ago) by kib
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +1 -0 lines
SVN rev 193931 on 2009-06-10 16:17:38Z by kib Do not leak the state->ls_lock after VI_DOOMED check introduced in the r192683. Reported by: pho Submitted by: jhb
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun May 24 12:39:38 2009 UTC (2 years, 8 months ago) by kib
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +15 -2 lines
SVN rev 192685 on 2009-05-24 12:39:38Z by kib The advisory lock may be activated or activated and removed during the sleep waiting for conditions when the lock may be granted. To prevent lf_setlock() from accessing possibly freed memory, add reference counting to the struct lockf_entry. Bump refcount around the sleep. Make lf_free_lock() return non-zero when structure was freed, and use this after the sleep to return EINTR to the caller. The error code might need a clarification, but we cannot return success to usermode, since the lock is not owned anymore. Reviewed by: dfr Tested by: pho MFC after: 1 month
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun May 24 12:37:55 2009 UTC (2 years, 8 months ago) by kib
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -1 lines
SVN rev 192684 on 2009-05-24 12:37:55Z by kib In lf_purgelocks(), assert that state->ls_pending is empty after we weeded out threads, and clean ls_active instead of ls_pending. Reviewed by: dfr Tested by: pho MFC after: 1 month
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun May 24 12:33:16 2009 UTC (2 years, 8 months ago) by kib
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +17 -2 lines
SVN rev 192683 on 2009-05-24 12:33:16Z by kib In lf_advlockasync(), recheck for doomed vnode after the state->ls_lock is acquired. In the lf_purgelocks(), assert that vnode is doomed and set *statep to NULL before clearing ls_pending list. Otherwise, we allow for the thread executing lf_advlockasync() to put new pending entry after state->ls_lock is dropped in lf_purgelocks(). Reviewed by: dfr Tested by: pho MFC after: 1 month
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun May 24 12:28:38 2009 UTC (2 years, 8 months ago) by kib
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +1 -1 lines
SVN rev 192681 on 2009-05-24 12:28:38Z by kib Replace the while statement with the if for clarity. The loop body cannot be executed more then once. Reviewed by: dfr Tested by: pho MFC after: 1 month
Revision 1.57.2.5.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.57.2.5: preferred, colored; next MAIN 1.57.2.6: preferred, colored
Changes since revision 1.57.2.5: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Nov 27 04:40:37 2008 UTC (3 years, 2 months ago) by ganbold
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +1 -2 lines
SVN rev 185358 on 2008-11-27 04:40:37Z by ganbold Remove unused variable. Found with: Coverity Prevent(tm) CID: 3664 Approved by: kib
Revision 1.57.2.5.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.57.2.5: preferred, colored; next MAIN 1.57.2.6: preferred, colored
Changes since revision 1.57.2.5: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.54.2.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 25 14:01:29 2008 UTC (3 years, 3 months ago) by dfr
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.54.2.3.2.1: preferred, colored; branchpoint 1.54.2.3: preferred, colored; next MAIN 1.54.2.4: preferred, colored
Changes since revision 1.54.2.3.2.1: +4 -1 lines
SVN rev 184262 on 2008-10-25 14:01:29Z by dfr MFC: r184227 - don't use *statep without holding the vnode interlock This change is being merged earlier than originally planned at the request of the release engineers. Approved by: re (kib)
Revision 1.54.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 25 14:01:08 2008 UTC (3 years, 3 months ago) by dfr
Branches: RELENG_6
Diff to: previous 1.54.2.3: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.3: +4 -1 lines
SVN rev 184261 on 2008-10-25 14:01:08Z by dfr MFC: r184227 - don't use *statep without holding the vnode interlock This change is being merged earlier than originally planned at the request of the release engineers. Approved by: re (kib)
Revision 1.57.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 25 14:00:37 2008 UTC (3 years, 3 months ago) by dfr
Branches: RELENG_7
CVS tags: RELENG_7_2_BP, RELENG_7_1_BP
Branch point for: RELENG_7_2, RELENG_7_1
Diff to: previous 1.57.2.4: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.4: +4 -1 lines
SVN rev 184260 on 2008-10-25 14:00:37Z by dfr MFC: r184227 - don't use *statep without holding the vnode interlock This change is being merged earlier than originally planned at the request of the release engineers. Approved by: re (kib)
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Oct 24 16:04:10 2008 UTC (3 years, 3 months ago) by dfr
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -1 lines
SVN rev 184227 on 2008-10-24 16:04:10Z by dfr Don't rely on the value of *statep without first taking the vnode interlock. Reviewed by: Mike Tancsa MFC after: 2 weeks
Revision 1.54.2.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
Diff to: previous 1.54.2.3: preferred, colored
Changes since revision 1.54.2.3: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.54.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 22 01:17:56 2008 UTC (3 years, 5 months ago) by jhb
Branches: RELENG_6
CVS tags: RELENG_6_4_BP
Branch point for: RELENG_6_4
Diff to: previous 1.54.2.2: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.2: +1 -3 lines
SVN rev 181978 on 2008-08-22 01:17:56Z by jhb Use sx_sleep() when waiting for a file lock instead of explicitly dropping the sx lock and then doing a tsleep() without a timeout. The tsleep() method leads to lost wakeups that can cause processes to hang waiting for a lock on an unlocked file. The lockf code already uses sx_sleep() in 7.x+.
Revision 1.57.2.4: download - view: text, markup, annotated - select for diffs
Tue Aug 5 10:35:51 2008 UTC (3 years, 6 months ago) by dfr
Branches: RELENG_7
Diff to: previous 1.57.2.3: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.3: +110 -26 lines
SVN rev 181328 on 2008-08-05 10:35:51Z by dfr MFC: r180025,180064,180069,180217,180743,180779-180780 Implement support for NFS advisory locking in the kernel including correct semantics for flock(2) style locks. Sponsored by: Isilon Systems PR: 94256
Revision 1.57.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 1 09:46:19 2008 UTC (3 years, 6 months ago) by kib
Branches: RELENG_7
Diff to: previous 1.57.2.2: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.2: +97 -2 lines
SVN rev 181119 on 2008-08-01 09:46:19Z by kib MFC r178243: Move the head of byte-level advisory lock list from the filesystem-specific vnode data to the struct vnode. Provide the default implementation for the vop_advlock and vop_advlockasync. Purge the locks on the vnode reclaim by using the lf_purgelocks(). The default implementation is augmented for the nfs and smbfs. In the nfs_advlock, push the Giant inside the nfs_dolock. Before the change, the vop_advlock and vop_advlockasync have taken the unlocked vnode and dereferenced the fs-private inode data, racing with with the vnode reclamation due to forced unmount. Now, the vop_getattr under the shared vnode lock is used to obtain the inode size, and later, in the lf_advlockasync, after locking the vnode interlock, the VI_DOOMED flag is checked to prevent an operation on the doomed vnode. MFC r178247: Fix compilation with LOCKF_DEBUG. As was announced on the stable@, the MFC changes the VFS KBI on RELENG_7. Approved by: re (kensmith)
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jun 26 10:21:54 2008 UTC (3 years, 7 months ago) by dfr
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +110 -26 lines
SVN rev 180025 on 2008-06-26 10:21:54Z by dfr Re-implement the client side of rpc.lockd in the kernel. This implementation provides the correct semantics for flock(2) style locks which are used by the lockf(1) command line tool and the pidfile(3) library. It also implements recovery from server restarts and ensures that dirty cache blocks are written to the server before obtaining locks (allowing multiple clients to use file locking to safely share data). Sponsored by: Isilon Systems PR: 94256 MFC after: 2 weeks
Revision 1.54.2.2: download - view: text, markup, annotated - select for diffs
Sun May 11 08:53:55 2008 UTC (3 years, 9 months ago) by dfr
Branches: RELENG_6
Diff to: previous 1.54.2.1: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.1: +12 -11 lines
MFC kern_lockf.c revision 1.64: When blocking on an F_FLOCK style lock request which is upgrading a shared lock to exclusive, drop the shared lock before deadlock detection.
Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Sun May 11 08:53:10 2008 UTC (3 years, 9 months ago) by dfr
Branches: RELENG_7
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.2.1: +12 -11 lines
MFC kern_lockf.c revision 1.64: When blocking on an F_FLOCK style lock request which is upgrading a shared lock to exclusive, drop the shared lock before deadlock detection.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri May 9 10:34:23 2008 UTC (3 years, 9 months ago) by dfr
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +12 -11 lines
When blocking on an F_FLOCK style lock request which is upgrading a shared lock to exclusive, drop the shared lock before deadlock detection. MFC after: 2 days
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 24 10:46:19 2008 UTC (3 years, 9 months ago) by dfr
Branches: RELENG_6
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1918 -455 lines
MFC: kernel-mode NFS lock manager.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Apr 16 14:08:12 2008 UTC (3 years, 9 months ago) by dfr
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +1 -1 lines
Fix compilation with LOCKF_DEBUG.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Apr 16 11:33:31 2008 UTC (3 years, 9 months ago) by kib
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +96 -1 lines
Move the head of byte-level advisory lock list from the filesystem-specific vnode data to the struct vnode. Provide the default implementation for the vop_advlock and vop_advlockasync. Purge the locks on the vnode reclaim by using the lf_purgelocks(). The default implementation is augmented for the nfs and smbfs. In the nfs_advlock, push the Giant inside the nfs_dolock. Before the change, the vop_advlock and vop_advlockasync have taken the unlocked vnode and dereferenced the fs-private inode data, racing with with the vnode reclamation due to forced unmount. Now, the vop_getattr under the shared vnode lock is used to obtain the inode size, and later, in the lf_advlockasync, after locking the vnode interlock, the VI_DOOMED flag is checked to prevent an operation on the doomed vnode. The implementation of the lf_purgelocks() is submitted by dfr. Reported by: kris Tested by: kris, pho Discussed with: jeff, dfr MFC after: 2 weeks
Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 10 09:39:24 2008 UTC (3 years, 10 months ago) by dfr
Branches: RELENG_7
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +1905 -471 lines
MFC: Kernel mode Network Lock Manager.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Apr 1 16:07:01 2008 UTC (3 years, 10 months ago) by dfr
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +10 -5 lines
Don't try to use an SX lock while holding the vnode interlock. Sponsored by: Isilon Systems
Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Mar 26 15:23:09 2008 UTC (3 years, 10 months ago) by dfr
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1894 -471 lines
Add the new kernel-mode NFS Lock Manager. To use it instead of the user-mode lock manager, build a kernel with the NFSLOCKD option and add '-k' to 'rpc_lockd_flags' in rc.conf. Highlights include: * Thread-safe kernel RPC client - many threads can use the same RPC client handle safely with replies being de-multiplexed at the socket upcall (typically driven directly by the NIC interrupt) and handed off to whichever thread matches the reply. For UDP sockets, many RPC clients can share the same socket. This allows the use of a single privileged UDP port number to talk to an arbitrary number of remote hosts. * Single-threaded kernel RPC server. Adding support for multi-threaded server would be relatively straightforward and would follow approximately the Solaris KPI. A single thread should be sufficient for the NLM since it should rarely block in normal operation. * Kernel mode NLM server supporting cancel requests and granted callbacks. I've tested the NLM server reasonably extensively - it passes both my own tests and the NFS Connectathon locking tests running on Solaris, Mac OS X and Ubuntu Linux. * Userland NLM client supported. While the NLM server doesn't have support for the local NFS client's locking needs, it does have to field async replies and granted callbacks from remote NLMs that the local client has contacted. We relay these replies to the userland rpc.lockd over a local domain RPC socket. * Robust deadlock detection for the local lock manager. In particular it will detect deadlocks caused by a lock request that covers more than one blocking request. As required by the NLM protocol, all deadlock detection happens synchronously - a user is guaranteed that if a lock request isn't rejected immediately, the lock will eventually be granted. The old system allowed for a 'deferred deadlock' condition where a blocked lock request could wake up and find that some other deadlock-causing lock owner had beaten them to the lock. * Since both local and remote locks are managed by the same kernel locking code, local and remote processes can safely use file locks for mutual exclusion. Local processes have no fairness advantage compared to remote processes when contending to lock a region that has just been unlocked - the local lock manager enforces a strict first-come first-served model for both local and remote lockers. Sponsored by: Isilon Systems PR: 95247 107555 115524 116679 MFC after: 2 weeks
Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Mar 19 07:13:24 2008 UTC (3 years, 10 months ago) by jeff
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +12 -6 lines
- Fix the last of the threading bugs that were introduced as far back as 1.38 in 2001. Break out of the FOREACH_THREAD_IN_PROC loop when we've discovered a new proc in the chain. - Increment i and check for maxlockdepth once per matching process not once per thread. This didn't properly terminate the loop before. - Fix a bug which has existed potentially since rev 1.1. waitblock->lf_next can be NULL when a thread has been woken-up but not yet scheduled. Check for this condition rather than blindly dereferencing. Found by: libMicro
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Mar 19 06:19:00 2008 UTC (3 years, 10 months ago) by jeff
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
- Relax requirements for p_numthreads, p_threads, p_swtick, and p_nice from requiring the per-process spinlock to only requiring the process lock. - Reflect these changes in the proc.h documentation and consumers throughout the kernel. This is a substantial reduction in locking cost for these fields and was made possible by recent changes to threading support.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Aug 7 09:04:50 2007 UTC (4 years, 6 months ago) by kib
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +44 -27 lines
Do not call free() while holding vnode interlock. Reported and tested by: Peter Holm Reviewed by: jeff Approved by: re (kensmith)
Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Jul 3 21:22:58 2007 UTC (4 years, 7 months ago) by jeff
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +56 -54 lines
- Remove explicit Giant protection from lockf. Use the vnode interlock to protect this datastructure instead. - Preallocate an extra lockf structure in case we want to split a lock on insert or delete. - msleep() on the vnode interlock when blocking on a lock. Reviewed by: rwatson Approved by: re
Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Jun 5 00:00:54 2007 UTC (4 years, 8 months ago) by jeff
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +16 -8 lines
Commit 14/14 of sched_lock decomposition. - Use thread_lock() rather than sched_lock for per-thread scheduling sychronization. - Use the per-process spinlock rather than the sched_lock for per-process scheduling synchronization. Tested by: kris, current@ Tested on: i386, amd64, ULE, 4BSD, libthr, libkse, PREEMPTION, etc. Discussed with: kris, attilio, kmacy, jhb, julian, bde (small parts each)
Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Mar 29 08:13:01 2005 UTC (6 years, 10 months ago) by phk
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -3 lines
Print name of device instead of useless major/minor numbers.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Mar 15 14:08:10 2005 UTC (6 years, 10 months ago) by phk
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -3 lines
Fix a debug message to print a usable device name rather than useless major+minor tupple.
Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 31 23:26:16 2005 UTC (7 years ago) by imp
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +1 -1 lines
MFC: /*- and related license changes
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jan 25 10:15:26 2005 UTC (7 years ago) by jeff
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +40 -18 lines
- Make lf_print static and move its prototype into kern_lockf.c - Protect all of the advlock code with Giant as some filesystems may not be entering with Giant held now. Sponsored by: Isilon Systems, Inc.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Jan 6 23:35:39 2005 UTC (7 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -1 lines
/* -> /*- for copyright notices, minor format tweaks as necessary
Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Apr 5 21:03:34 2004 UTC (7 years, 10 months ago) by imp
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +0 -4 lines
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999. Approved by: core
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Jun 11 00:56:56 2003 UTC (8 years, 8 months ago) by obrien
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -1 lines
Use __FBSDID().
Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Apr 29 13:36:02 2003 UTC (8 years, 9 months ago) by kan
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +1 -2 lines
Deprecate machine/limits.h in favor of new sys/limits.h. Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Mar 18 08:45:23 2003 UTC (8 years, 10 months ago) by phk
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +0 -1 lines
Including <sys/stdint.h> is (almost?) universally only to be able to use %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Feb 19 05:47:25 2003 UTC (8 years, 11 months ago) by imp
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
Back out M_* changes, per decision of the TRB. Approved by: trb
Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Jan 21 08:55:54 2003 UTC (9 years ago) by alfred
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Nov 7 21:56:05 2002 UTC (9 years, 3 months ago) by mux
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +15 -17 lines
- Fix a bunch of casts to long which were truncating off_t's. - Remove the comments which were justifying this by the fact that we don't have %q in the kernel, this was probably right back in time, but we now have %q, and we even have better to print those types (%j).
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Sep 14 14:44:41 2002 UTC (9 years, 4 months ago) by mux
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +0 -1 lines
Remove a conditional #include <sys/kernel.h>, it is already included unconditionally before. Submitted by: Olivier Houchard <cognet@ci0.org>
Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Aug 13 10:07:05 2002 UTC (9 years, 5 months ago) by phk
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -0 lines
Add a #include for <sys/mount.h>
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jun 29 00:29:12 2002 UTC (9 years, 7 months ago) by alfred
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
More caddr_t removal. Change struct knote's kn_hook from caddr_t to void *.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Mar 19 21:24:06 2002 UTC (9 years, 10 months ago) by alfred
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +8 -8 lines
Remove __P.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Dec 2 12:47:25 2001 UTC (10 years, 2 months ago) by alfred
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +27 -11 lines
make LOCKF_DEBUG kernel option work (sorta) Submitted by: Maxim Konovalov <maxim@macomnet.ru> PR: kern/32267
Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Sep 12 08:37:44 2001 UTC (10 years, 5 months ago) by julian
Branches: MAIN
CVS tags: KSE_MILESTONE_2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +18 -14 lines
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Aug 29 18:53:53 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
advlock: simplify overflow checks
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Aug 26 10:23:49 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -6 lines
Cosmetique & style fixes from bde
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Aug 24 10:20:26 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -3 lines
Remove extra check unneded now
Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Aug 23 17:09:23 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -2 lines
Add yet one check for SEEK_END overflow
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Aug 23 16:00:27 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -3 lines
Oops, fix my broken handling of new l_len<0 case
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Aug 23 15:40:30 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +7 -4 lines
Originally BSD return EINVAL for l_len < 0, but now POSIX wants it too, so implement POSIX l_len < 0 handling.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Aug 23 14:41:39 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Cosmetique: correct English in comments Pointed by: bde
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Aug 23 13:21:17 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Move <machine/*> after <sys/*> Pointed by: bde
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Aug 23 07:42:40 2001 UTC (10 years, 5 months ago) by ache
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +13 -2 lines
Detect off_t EOVERFLOW of start/end offsets calculations for adv. lock, as POSIX require.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue May 1 08:12:56 2001 UTC (10 years, 9 months ago) by markm
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -1 lines
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Apr 17 20:45:20 2001 UTC (10 years, 9 months ago) by alfred
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Implement client side NFS locks. Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Mar 24 03:57:44 2001 UTC (10 years, 10 months ago) by jhb
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -1 lines
Protect p_wmesg and p_wchan with sched_lock while checking for deadlocks with other byte range file locks.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Nov 16 16:28:56 1999 UTC (12 years, 2 months ago) by phk
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10, RELENG_4_0_0_RELEASE, RELENG_4, PRE_SMPNG
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -9 lines
Commit the remaining part of PR14914: Alot of the code in sys/kern directly accesses the *Q_HEAD and *Q_ENTRY structures for list operations. This patch makes all list operations in sys/kern use the queue(3) macros, rather than directly accessing the *Q_{HEAD,ENTRY} structures. Reviewed by: phk Submitted by: Jake Burkholder <jake@checker.org> PR: 14914
Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:32:11 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_1_0
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:14:56 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.2: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:26:00 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:46:13 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 15 22:45:46 1999 UTC (12 years, 6 months ago) by dt
Branches: RELENG_3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +21 -17 lines
MFC: - rev. 1.21: -Wall fixes (dillon) - rev. 1.22: list corrupted by region locking and signal (dt) - rev. 1.23: list corrupted by ptrace() and style fix for 1.21 (bde)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jul 4 14:43:01 1999 UTC (12 years, 7 months ago) by bde
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +20 -17 lines
Fixed corruption of the "blocked" list in lf_setlock() when tsleep() returns 0 after ptrace() attach and/or detach doesn't quite quite deliver a signal. Perhaps the process shouldn't be woken in this case, but avoiding the problem is easy. PR: 12247 Fixed a couple of places where mechanical fixing of compiler warnings caused misspelling of NOLOCKF as NULL.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat May 8 22:46:46 1999 UTC (12 years, 9 months ago) by dt
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -1 lines
Fix a freelist trashing under following confitions: - first program lock a region in a file, - second program wait on the lock, - first program extend the region, - second program interrupted by a signal.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jan 27 21:49:56 1999 UTC (13 years ago) by dillon
Branches: MAIN
CVS tags: PRE_VFS_BIO_NFS_PATCH, PRE_SMP_VMSHARE, PRE_NEWBUS, POST_VFS_BIO_NFS_PATCH, POST_SMP_VMSHARE, POST_NEWBUS
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Nov 10 09:16:29 1998 UTC (13 years, 3 months ago) by peter
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -1 lines
add #include <sys/kernel.h> where it's needed by MALLOC_DEFINE()
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jul 29 17:38:14 1998 UTC (13 years, 6 months ago) by bde
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +39 -34 lines
Fixed printf format errors.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jan 31 07:23:11 1998 UTC (14 years ago) by eivind
Branches: MAIN
CVS tags: PRE_SOFTUPDATE, PRE_NOBDEV, PRE_DEVFS_SLICE, POST_SOFTUPDATE, POST_DEVFS_SLICE
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -1 lines
Make the debug options new-style. This also zaps a DPT option from lint; it wasn't referenced from anywhere.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Dec 5 19:55:38 1997 UTC (14 years, 2 months ago) by bde
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
Don't include <sys/lock.h> in headers when only `struct simplelock' is required. Fixed everything that depended on the pollution.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Oct 12 20:23:49 1997 UTC (14 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Last major round (Unless Bruce thinks of somthing :-) of malloc changes. Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Oct 11 18:31:23 1997 UTC (14 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -1 lines
Distribute and statizice a lot of the malloc M_* types. Substantial input from: bde
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Apr 1 10:30:06 1997 UTC (14 years, 10 months ago) by bde
Branches: MAIN
CVS tags: pre_smp_merge, post_smp_merge, WOLLMAN_MBUF, BP_WOLLMAN_MBUF
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -5 lines
Use OID_AUTO instead of a magic number for Lite2 sysctl debug.lockf_debug. Removed unused #includes.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 22 09:39:06 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Feb 18 14:37:26 1997 UTC (14 years, 11 months ago) by bde
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -2 lines
Added some ufs #includes so that this compiles with option LOCKF_DEBUG. Moving this all from ufs wasn't a good move. At least the debugging routines depend on the file system. Cleaned up the LOCKF_DEBUG #includes.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Feb 12 14:00:00 1997 UTC (15 years ago) by bde
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -0 lines
Restored some lost function return types.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Feb 10 02:09:36 1997 UTC (15 years ago) by dyson
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +53 -68 lines
This is the kernel Lite/2 commit. There are some requisite userland changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jan 14 06:43:25 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$ This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 29 09:23:37 1996 UTC (15 years, 1 month ago) by davidg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE, RELENG_2_2_5_RELEASE, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +1 -8 lines
Brought in change from rev 1.8: delete bogus inconsistency check.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Dec 29 09:22:34 1996 UTC (15 years, 1 month ago) by davidg
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -8 lines
Delete bogus inconsistency check that could cause a gratuitous panic. I had added this years ago when I didn't understand all the subtilties of the flock code.
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 21 18:46:21 1996 UTC (15 years, 1 month ago) by bde
Branches: RELENG_2_2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +14 -11 lines
YAMFC (fixed arg checking in if_advlock()).
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 19 13:22:30 1996 UTC (15 years, 1 month ago) by bde
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +14 -11 lines
Fixed arg checking in if_advlock(). Invalid args were accepted in an optimized case. Preposterous lengths weren't checked for. Found by: NIST-PCTS
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Sep 3 14:21:52 1996 UTC (15 years, 5 months ago) by bde
Branches: MAIN
CVS tags: RELENG_2_2_BP
Branch point for: RELENG_2_2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel. Include it directly in the few places where it is used. Reduced some #includes of <sys/file.h> to #includes of <sys/fcntl.h> or nothing.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Dec 14 08:31:26 1995 UTC (16 years, 2 months ago) by phk
Branches: MAIN
CVS tags: wollman_polling
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +19 -9 lines
A Major staticize sweep. Generates a couple of warnings that I'll deal with later. A number of unused vars removed. A number of unused procs removed or #ifdefed.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue May 30 08:05:31 1995 UTC (16 years, 8 months ago) by rgrimes
Branches: MAIN
CVS tags: RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE, RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5
Branch point for: RELENG_2_1_0
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
Remove trailing whitespace.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 25 11:27:51 1994 UTC (17 years, 3 months ago) by davidg
Branches: MAIN
CVS tags: RELENG_2_0_5_ALPHA, RELEASE_2_0, OLAH_TTCP, BETA_2_0, ALPHA_2_0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -9 lines
Changed some variable names in lf_addblock to make the code both understandable and conform to other conventions used in the file.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Sep 25 19:33:37 1994 UTC (17 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +8 -7 lines
While in the real world, I had a bad case of being swapped out for a lot of cycles. While waiting there I added a lot of the extra ()'s I have, (I have never used LISP to any extent). So I compiled the kernel with -Wall and shut up a lot of "suggest you add ()'s", removed a bunch of unused var's and added a couple of declarations here and there. Having a lap-top is highly recommended. My kernel still runs, yell at me if you kernel breaks.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Aug 8 17:30:48 1994 UTC (17 years, 6 months ago) by davidg
Branches: MAIN
Made lockf advisory locking code generic (rather than ufs specific), and use it in NFS. This is required both for diskless support and for POSIX compliance. Note: the support in NFS is only for the local node. Submitted by: based on work originally done by Yuval Yurom
