The NetBSD Project

CVS log for src/sys/kern/sys_aio.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:35 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:21 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.31.4.1: +47 -14 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with head

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:40 2011 UTC (14 months, 3 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Thu Feb 17 19:02:50 2011 UTC (15 months, 1 week ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, HEAD
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Remove curproc == NULL test.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Dec 17 22:05:36 2010 UTC (17 months, 1 week ago) by yamt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

aio_worker: add an assertion

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:30 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.31: +46 -22 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:42 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.2.3: +46 -22 lines
Diff to previous 1.18.2.3 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 6 18:36:09 2010 UTC (21 months, 2 weeks ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.34: +45 -13 lines
Diff to previous 1.34 (colored)

Like with mqueue(3), create and remove the aio(3) sysctl nodes dynamically.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:54 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.31: +3 -11 lines
Diff to previous 1.31 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:11 2010 UTC (23 months ago) by hannken
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jun 13 04:45:50 2010 UTC (23 months, 1 week ago) by yamt
Branch: MAIN
Changes since 1.32: +2 -9 lines
Diff to previous 1.32 (colored)

aio_enqueue_job: don't bother to check curjob.
- it's an undefined behaviour anyway.
- the check sometimes prevent legal reuse of userland aiocb.
  note that the userland can notice the i/o completion and reuse the aiocb
  before the aio_worker kernel thread clears curjob.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jun 13 04:13:31 2010 UTC (23 months, 1 week ago) by yamt
Branch: MAIN
Changes since 1.31: +2 -3 lines
Diff to previous 1.31 (colored)

increment p_nrlwps in lwp_create rather than letting callers do so
as it's always decremented by lwp_exit.  this fixes error recovery of
eg. aio_procinit.

Revision 1.19.12.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:17 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.19: +10 -10 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

sync to netbsd-5

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:19 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.2.2: +43 -42 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored)

sync with head

Revision 1.19.10.3 / (download) - annotate - [select for diffs], Sat Jan 30 21:23:52 2010 UTC (2 years, 3 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE
Changes since 1.19.10.2: +10 -10 lines
Diff to previous 1.19.10.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Pull up following revision(s) (requested by rmind in ticket #1288):
	sys/kern/sys_aio.c: revision 1.28
sys_aio_suspend, sys_lio_listio:
        - fix the buffer sizes.
        - use kmem_alloc instead of kmem_zalloc for buffers which we will
          overwrite soon.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jan 30 21:23:46 2010 UTC (2 years, 3 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.30: +18 -20 lines
Diff to previous 1.30 (colored)

aio_suspend1: remove wrong comment, add one new.
Tidy up a little, while here.

Revision 1.19.8.3 / (download) - annotate - [select for diffs], Sat Jan 30 21:19:19 2010 UTC (2 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.19.8.2: +10 -10 lines
Diff to previous 1.19.8.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Pull up following revision(s) (requested by rmind in ticket #1288):
	sys/kern/sys_aio.c: revision 1.28 via patch
sys_aio_suspend, sys_lio_listio:
        - fix the buffer sizes.
        - use kmem_alloc instead of kmem_zalloc for buffers which we will
          overwrite soon.

Revision 1.19.8.2 / (download) - annotate - [select for diffs], Sat Jan 30 20:46:20 2010 UTC (2 years, 3 months ago) by snj
Branch: netbsd-5
Changes since 1.19.8.1: +5 -2 lines
Diff to previous 1.19.8.1 (colored) to branchpoint 1.19 (colored)

Revert ticket 1286.

Revision 1.19.10.2 / (download) - annotate - [select for diffs], Sat Jan 30 20:44:51 2010 UTC (2 years, 3 months ago) by snj
Branch: netbsd-5-0
Changes since 1.19.10.1: +5 -2 lines
Diff to previous 1.19.10.1 (colored) to branchpoint 1.19 (colored)

Revert ticket 1286.

Revision 1.19.10.1 / (download) - annotate - [select for diffs], Sat Jan 30 20:05:56 2010 UTC (2 years, 3 months ago) by snj
Branch: netbsd-5-0
Changes since 1.19: +2 -5 lines
Diff to previous 1.19 (colored)

Pull up following revision(s) (requested by rmind in ticket #1286):
	sys/kern/sys_aio.c: revision 1.25
aio_suspend1: fix a double free bug.

Revision 1.19.8.1 / (download) - annotate - [select for diffs], Sat Jan 30 19:53:21 2010 UTC (2 years, 3 months ago) by snj
Branch: netbsd-5
Changes since 1.19: +2 -5 lines
Diff to previous 1.19 (colored)

Pull up following revision(s) (requested by rmind in ticket #1286):
	sys/kern/sys_aio.c: revision 1.25
aio_suspend1: fix a double free bug.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Nov 22 19:09:16 2009 UTC (2 years, 6 months ago) by mbalmer
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

more s/the the/the/

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.28: +5 -6 lines
Diff to previous 1.28 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Oct 12 23:43:13 2009 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.27: +8 -8 lines
Diff to previous 1.27 (colored)

sys___aio_suspend50, sys_lio_listio:
	- fix the buffer sizes.
	- use kmem_alloc instead of kmem_zalloc for buffers which we will
	  overwrite soon.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 12 23:38:08 2009 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.26: +16 -9 lines
Diff to previous 1.26 (colored)

wrap long lines.  no functional changes.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 12 23:36:56 2009 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

make aio_worker static.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Oct 12 23:31:59 2009 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.24: +2 -5 lines
Diff to previous 1.24 (colored)

aio_suspend1: fix a double free bug.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.22.2.1: +6 -5 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18.2.1: +6 -5 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

sync with head

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 24 21:41:26 2009 UTC (3 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.23: +6 -5 lines
Diff to previous 1.23 (colored)

More changes to improve kern_descrip.c.

- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.22: +2 -6 lines
Diff to previous 1.22 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.18: +140 -53 lines
Diff to previous 1.18 (colored)

sync with head.

Revision 1.19.6.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.19.6.1: +2 -6 lines
Diff to previous 1.19.6.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:06 2009 UTC (3 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.22: +2 -6 lines
Diff to previous 1.22 (colored)

PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.19: +127 -35 lines
Diff to previous 1.19 (colored)

Sync with HEAD.

Revision 1.15.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.2: +125 -33 lines
Diff to previous 1.15.6.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:52 2009 UTC (3 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.21: +35 -25 lines
Diff to previous 1.21 (colored)

merge christos-time_t

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.19: +95 -13 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Thu Nov 20 22:21:56 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.16.2.3: +3 -3 lines
Diff to previous 1.16.2.3 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

catch up with head.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:39 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.16.2.2: +95 -13 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored)

merge with head.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Nov 16 19:34:29 2008 UTC (3 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

more <sys/buf.h> police

Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 14 23:33:45 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.19: +94 -13 lines
Diff to previous 1.19 (colored)

Make POSIX AIO loadable as a module.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:27 2008 UTC (3 years, 6 months ago) by christos
Branch: christos-time_t
Changes since 1.16.2.1: +22 -25 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

Sync with head.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.18: +15 -16 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.16.4.1: +15 -16 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:11 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.1: +20 -23 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Mon May 26 17:45:51 2008 UTC (4 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5-0, netbsd-5, matt-nb5-mips64, haad-dm
Changes since 1.18: +15 -16 lines
Diff to previous 1.18 (colored)

Adjust and thus unify my license.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:10 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.16: +9 -11 lines
Diff to previous 1.16 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.17: +7 -9 lines
Diff to previous 1.17 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:04 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.15: +13 -13 lines
Diff to previous 1.15 (colored)

Sync with HEAD.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:00 2008 UTC (4 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.16: +34 -24 lines
Diff to previous 1.16 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.7.2.6 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:02 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.2.5: +13 -13 lines
Diff to previous 1.7.2.5 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, christos-time_t
Changes since 1.15: +13 -13 lines
Diff to previous 1.15 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.7.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:22 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.2.4: +27 -27 lines
Diff to previous 1.7.2.4 (colored) to branchpoint 1.7 (colored)

sync with head

Revision 1.6.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:20 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.6.10.1: +42 -42 lines
Diff to previous 1.6.10.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync with HEAD

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:12 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.13: +27 -27 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.7.8.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:09 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.7.8.2: +27 -27 lines
Diff to previous 1.7.8.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with HEAD.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:14 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.13: +27 -27 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 21 12:04:19 2007 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

KM_NOSLEEP -> KM_SLEEP

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:10 2007 UTC (4 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.13: +26 -26 lines
Diff to previous 1.13 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.7.8.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:38 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.7.8.1: +17 -17 lines
Diff to previous 1.7.8.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:09 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.2.3: +17 -17 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored)

sync with head

Revision 1.6.8.4 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:57 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.6.8.3: +15 -15 lines
Diff to previous 1.6.8.3 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 30 17:39:43 2007 UTC (4 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.12: +4 -7 lines
Diff to previous 1.12 (colored)

aio_enqueue_job: Fix the mix of previous commits, that is, increase
aio_jobs_count only once; also, decrease it in second error case too.

Noted by <ad>.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 29 18:17:01 2007 UTC (4 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.11: +12 -10 lines
Diff to previous 1.11 (colored)

Finish the usage of atomic operations:
- Leave non-accurate pre-checks;
- Use atomic_inc_uint_nv() with re-check;

Reviewed by <ad>.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 29 17:52:27 2007 UTC (4 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored)

Use atomics to maintain aio_jobs_count. XXX There is still a race, we
should should use atomic_inc_uint_nv() before setup to ensure that we
don't exceed the max number of concurrent jobs.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 28 19:30:56 2007 UTC (4 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

Unify the license: All rights reserved.
No functional change.

Revision 1.6.8.3 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:10 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.6.8.2: +4 -4 lines
Diff to previous 1.6.8.2 (colored) to branchpoint 1.6 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:04 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.7.8.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:52 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.7: +9 -7 lines
Diff to previous 1.7 (colored)

Sync with HEAD.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:50 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.2.2: +9 -7 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored)

sync with head.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:24 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.7: +9 -7 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD

Revision 1.6.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:21 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.6: +11 -9 lines
Diff to previous 1.6 (colored)

sync with HEAD

Revision 1.6.8.2 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:34 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.6.8.1: +9 -7 lines
Diff to previous 1.6.8.1 (colored) to branchpoint 1.6 (colored)

Sync with HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:44 2007 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.7: +9 -7 lines
Diff to previous 1.7 (colored)

Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.

Revision 1.5.2.11 / (download) - annotate - [select for diffs], Thu Nov 1 21:58:22 2007 UTC (4 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.10: +8 -7 lines
Diff to previous 1.5.2.10 (colored) next main 1.6 (colored)

- Fix interactivity problems under high load. Beacuse soft interrupts
  are being stacked on top of regular LWPs, more often than not aston()
  was being called on a soft interrupt thread instead of a user thread,
  meaning that preemption was not happening on EOI.

- Don't use bool in a couple of data structures. Sub-word writes are not
  always atomic and may clobber other fields in the containing word.

- For SCHED_4BSD, make p_estcpu per thread (l_estcpu). Rework how the
  dynamic priority level is calculated - it's much better behaved now.

- Kill the l_usrpri/l_priority split now that priorities are no longer
  directly assigned by tsleep(). There are three fields describing LWP
  priority:

        l_priority: Dynamic priority calculated by the scheduler.
                This does not change for kernel/realtime threads,
                and always stays within the correct band. Eg for
                timeshared LWPs it never moves out of the user
                priority range. This is basically what l_usrpri
                was before.

        l_inheritedprio: Lent to the LWP due to priority inheritance
                (turnstiles).

        l_kpriority: A boolean value set true the first time an LWP
                sleeps within the kernel. This indicates that the LWP
                should get a priority boost as compensation for blocking.
                lwp_eprio() now does the equivalent of sched_kpri() if
                the flag is set. The flag is cleared in userret().

- Keep track of scheduling class (OTHER, FIFO, RR) in struct lwp, and use
  this to make decisions in a few places where we previously tested for a
  kernel thread.

- Partially fix itimers and usr/sys/intr time accounting in the presence
  of software interrupts.

- Use kthread_create() to create idle LWPs. Move priority definitions
  from the various modules into sys/param.h.

- newlwp -> lwp_create

Revision 1.5.2.10 / (download) - annotate - [select for diffs], Thu Oct 18 22:45:53 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.9: +3 -3 lines
Diff to previous 1.5.2.9 (colored)

Free uareas back to the uarea cache on the CPU where they were last used.

Revision 1.5.2.9 / (download) - annotate - [select for diffs], Tue Oct 16 11:08:51 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.8: +3 -3 lines
Diff to previous 1.5.2.8 (colored)

Oops - fat fingered previous.

Revision 1.5.2.8 / (download) - annotate - [select for diffs], Tue Oct 16 10:53:25 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.7: +4 -3 lines
Diff to previous 1.5.2.7 (colored)

Fix scheduler priority lossage. From rmind@.

Revision 1.5.2.7 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:21 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.6: +3 -3 lines
Diff to previous 1.5.2.6 (colored)

Sync with head.

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:30 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.5: +4 -4 lines
Diff to previous 1.5.2.5 (colored)

Sync with head.

Revision 1.6.8.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:49 2007 UTC (4 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Sync with HEAD.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:08 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.2.1: +1081 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

sync with head.

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:03 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.7.2.1, Sat Sep 1 23:40:23 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7: +0 -1081 lines
FILE REMOVED

file sys_aio.c was added on branch yamt-lazymbuf on 2007-09-03 14:41:07 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 1 23:40:23 2007 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: yamt-lazymbuf, mjf-devfs, bouyer-xenamd64
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Make bioops a pointer and point it to the softdeps struct in softdep
init.  Decouples "options SOFTDEP" from the main kernel and ffs code.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Mon Aug 20 03:22:42 2007 UTC (4 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.4: +4 -4 lines
Diff to previous 1.5.2.4 (colored)

softdep locking improvements. It hangs looping in flush_inodedep_deps(),
more work required.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:44 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.3: +7 -4 lines
Diff to previous 1.5.2.3 (colored)

Sync with head.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:08 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.6.2.1: +1081 -0 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with head.

Revision 1.6.2.1, Wed Jul 11 00:40:42 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.6: +0 -1081 lines
FILE REMOVED

file sys_aio.c was added on branch mjf-ufs-trans on 2007-07-11 20:10:08 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 11 00:40:42 2007 UTC (4 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, mjf-ufs-trans, matt-armv6, jmcneill-pm
Changes since 1.5: +7 -4 lines
Diff to previous 1.5 (colored)

According to POSIX, signal should be sent in aio_cancel() case too.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:06 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.2: +108 -110 lines
Diff to previous 1.5.2.2 (colored)

Sync with head.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:25 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.5.2.1: +1080 -0 lines
Diff to previous 1.5.2.1 (colored)

Sync with head.

Revision 1.5.2.1, Thu May 31 06:24:23 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.5: +0 -1078 lines
FILE REMOVED

file sys_aio.c was added on branch vmlocking on 2007-06-08 14:17:25 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 31 06:24:23 2007 UTC (4 years, 11 months ago) by rmind
Branch: MAIN
Branch point for: vmlocking
Changes since 1.4: +17 -21 lines
Diff to previous 1.4 (colored)

Make AIO initialization MP-safe.

Actually, lwp_exit() with (l != curlwp) will not work.
This fix might be pulled up from vmlocking branch.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 31 05:29:43 2007 UTC (4 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.3: +93 -91 lines
Diff to previous 1.3 (colored)

- Make aio_worker to handle pending exits and coredumps
- Allow aio_suspend() to be ended early by a signal
- Fix reference counting on LIO structures (remove hack)
- Use two global pools for AIO structures
- Minor cleanups

Patch provided by <ad>. Some additional modifications by me.
Reviewed by <yamt>.

Revision 1.3 / (download) - annotate - [select for diffs], Mon May 21 15:35:48 2007 UTC (5 years ago) by christos
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

rename si_sigval -> si_value to match POSIX RTS.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 17 14:51:41 2007 UTC (5 years ago) by yamt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Thu May 17 13:43:17 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.1.2.2: +3 -3 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

apply vfs_aio.c rev.1.5.2.1 to sys_aio.c.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu May 17 13:41:47 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.1.2.1: +1080 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.1.2.1, Mon May 7 22:22:21 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.1: +0 -1080 lines
FILE REMOVED

file sys_aio.c was added on branch yamt-idlelwp on 2007-05-17 13:41:47 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon May 7 22:22:21 2007 UTC (5 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Branch point for: yamt-idlelwp

Rename vfs_aio.c to sys_aio.c as decided in <tech-kern>.

Please note, that <tech-kern> people should note about
file names before commit. Otherwise, function may fail
with errno set to EDIRTY, and return -1. ;)

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>