The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 29 00:39:16 2011 UTC (8 months, 3 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, 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, HEAD
Changes since 1.35: +36 -16 lines
Diff to previous 1.35 (colored)

Add kern.direct_select sysctl.  Default to 0 for now.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 9 06:36:51 2011 UTC (9 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.34: +12 -5 lines
Diff to previous 1.34 (colored)

No need to lock the selcluster in selscan() if either
NO_DIRECT_SELECT is defined or all polls return an event.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Aug 6 11:04:25 2011 UTC (9 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.33: +37 -17 lines
Diff to previous 1.33 (colored)

Fix the races of direct select()/poll():

- When sel_do_scan() restarts do a full initialization with selclear() so
  we start from an empty set without registered events.  Defer the
  evaluation of l_selret after selclear() and add the count of direct events
  to the count of events.

- For selscan()/pollscan() zero the output descriptors before we poll and
  for selscan() take the sc_lock before we change them.

- Change sel_setevents() to not count events already set.

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>

Should fix PR #44763 (select/poll direct-set optimization seems racy)
       and PR #45187 (select(2) sometimes doesn't wakeup)

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:36 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.29: +34 -29 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD.

Revision 1.21.4.4 / (download) - annotate - [select for diffs], Tue May 31 03:05:03 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.21.4.3: +4 -17 lines
Diff to previous 1.21.4.3 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 28 15:33:41 2011 UTC (11 months, 4 weeks ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.32: +5 -2 lines
Diff to previous 1.32 (colored)

If a signal did not fire, restore the original signal mask for pselect/pollts
using a signal mask. Tested by tron.

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 18 14:48:04 2011 UTC (12 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.31: +3 -5 lines
Diff to previous 1.31 (colored)

No need to mask twice. The setup function does it.

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 18 03:51:41 2011 UTC (12 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.30: +3 -17 lines
Diff to previous 1.30 (colored)

PR/43625: Mark Davies: Fix pselect(2) to honor the temporary mask. pselect(2)
(and pollts(2)) are similar to sigsuspend(2) in that they temporarily change
the process signal mask and wait for signal delivery. Factor out and share the
code that does this.

Revision 1.21.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:09 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.21.4.2: +28 -10 lines
Diff to previous 1.21.4.2 (colored) to branchpoint 1.21 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 6 04:41:58 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.29: +30 -12 lines
Diff to previous 1.29 (colored)

In a case of direct select, set only masked events, do not wakeup LWP
if no polled/selected events were set; also, count the correct return
value for the select.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:23 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.21.4.1: +140 -41 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Sat Dec 18 01:36:19 2010 UTC (17 months, 1 week ago) by rmind
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.28: +3 -5 lines
Diff to previous 1.28 (colored)

- Fix a few possible locking issues in execve1() and exit1().  Add a note
  that scheduler locks are special in this regard - adaptive locks cannot
  be in the path due to turnstiles.  Randomly spotted/reported by uebayasi@.
- Remove unused lwp_relock() and replace lwp_lock_retry() by simplifying
  lwp_lock() and sleepq_enter() a little.
- Give alllwp its own cache-line and mark lwp_cache pointer as read-mostly.

OK ad@

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:29 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.21.2.2: +1 -1 lines
Diff to previous 1.21.2.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with HEAD (-D20101022).

Revision 1.28 / (download) - annotate - [select for diffs], Fri Oct 15 05:39:19 2010 UTC (19 months, 1 week ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Re-enable direct select.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:31 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.21.2.1: +137 -36 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored)

Sync with HEAD.

Revision 1.5.2.5 / (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.5.2.4: +194 -80 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync with head.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 12 11:04:25 2010 UTC (22 months, 2 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

sel_setevents: fix error - match event-set, as intended.
Spotted by Enami Tsugutomo.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jul 11 11:17:58 2010 UTC (22 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.25: +6 -2 lines
Diff to previous 1.25 (colored)

Disable direct select for now, since it still brings problems.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jul 10 17:04:25 2010 UTC (22 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.24: +5 -4 lines
Diff to previous 1.24 (colored)

sel_setevents: fix direct injecting of fd bit for select() case.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 8 23:15:23 2010 UTC (22 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored)

sel_do_scan: do not bother to assert for SEL_SCANNING state before blocking,
as it might also be SEL_BLOCKING due to spurious wake-ups.  That has no harm.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 8 12:23:31 2010 UTC (22 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.22: +135 -38 lines
Diff to previous 1.22 (colored)

Implement direct select/poll support, currently effective for socket and
pipe subsystems.  Avoids overhead of second selscan() on wake-up, and thus
improves performance on certain workloads (especially when polling on many
file-descriptors).  Also, clean-up sys/fd_set.h header and improve macros.

Welcome to 5.99.36!

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:58 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.21: +58 -45 lines
Diff to previous 1.21 (colored)

sync with head

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:12 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.21: +58 -45 lines
Diff to previous 1.21 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Apr 25 15:55:24 2010 UTC (2 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.21: +58 -45 lines
Diff to previous 1.21 (colored)

Make select/poll work with more than 32 CPUs.
No ABI change.

Revision 1.5.2.4 / (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.5.2.3: +133 -188 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored)

sync with head

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 20 23:00:59 2009 UTC (2 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.20: +17 -3 lines
Diff to previous 1.20 (colored)

Add comment about locking.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 12 17:47:05 2009 UTC (2 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.19: +24 -21 lines
Diff to previous 1.19 (colored)

Bounding the 'nfds' arg to poll() at the current process limit for actual
open files is rather gross - the poll map isn't required to be dense.
Instead limit to a much larger value (1000 + dt_nfiles) so that user
programs cannot allocate indefinite sized blocks of kvm.
If the limit is exceeded, then return EINVAL instead of silently truncating
the list.
(The silent truncation in select isn't quite as bad - although even there
any high bits that are set ought to generate an EBADF response.)
Move the code that converts ERESTART and EWOULDBLOCK into common code.
Effectively fixes PR/17507 since the new limit is unlikely to be detected.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 11 09:48:51 2009 UTC (2 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.18: +16 -20 lines
Diff to previous 1.18 (colored)

- selcommon/pollcommon: drop redundant l argument.
- Use cached curlwp->l_fd, instead of p->p_fd.
- Inline selscan/pollscan.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Nov 1 21:46:09 2009 UTC (2 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.17: +2 -29 lines
Diff to previous 1.17 (colored)

- Move inittimeleft() and gettimeleft() to subr_time.c, where they belong.
- Move abstimeout2timo() there too and export.  Use it in lwp_park().

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 1 21:14:21 2009 UTC (2 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.16: +92 -130 lines
Diff to previous 1.16 (colored)

Move common logic in selcommon() and pollcommon() into sel_do_scan().
Avoids code duplication.  XXX: pollsock() should be converted too, except
it's a bit ugly.

Revision 1.16 / (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.15: +4 -7 lines
Diff to previous 1.15 (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.12.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.12.2.1: +10 -8 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.5.2.3 / (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.5.2.2: +10 -8 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored)

sync with head

Revision 1.15 / (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.14: +10 -8 lines
Diff to previous 1.14 (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.12.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.12: +79 -74 lines
Diff to previous 1.12 (colored)

Sync with HEAD.

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

Revision 1.5.2.2 / (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.5.2.1: +104 -97 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

sync with head.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.10.2.1: +79 -74 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 29 19:21:19 2009 UTC (3 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.13: +45 -51 lines
Diff to previous 1.13 (colored)

Move the internal poll/select related API's to use timespec instead
of timeval (rides the uvm bump).

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 21 13:11:14 2009 UTC (3 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.12: +36 -25 lines
Diff to previous 1.12 (colored)

Allocate sleep queue locks with mutex_obj_alloc. Reduces memory usage
on !MP kernels, and reduces false sharing on MP ones.

Revision 1.10.2.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.10: +19 -16 lines
Diff to previous 1.10 (colored)

Sync with HEAD.

Revision 1.3.4.5 / (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.3.4.4: +18 -15 lines
Diff to previous 1.3.4.4 (colored) next main 1.4 (colored)

Sync with HEAD.

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

merge christos-time_t

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Sat Dec 27 23:14:24 2008 UTC (3 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.3.2.3: +13 -13 lines
Diff to previous 1.3.2.3 (colored) next main 1.4 (colored)

merge with head.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.9.4.1: +13 -13 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 20 01:25:28 2008 UTC (3 years, 6 months ago) by yamt
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.10: +13 -13 lines
Diff to previous 1.10 (colored)

pollcommon: use a more appropriate type than char[].

Revision 1.3.2.3 / (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.3.2.2: +28 -34 lines
Diff to previous 1.3.2.2 (colored)

Sync with head.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Sync with HEAD.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 15 08:13:17 2008 UTC (3 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base, 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, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

- Rename cpu_lookup_byindex() to cpu_lookup(). The hardware ID isn't of
  interest to MI code. No functional change.
- Change /dev/cpu to operate on cpu index, not hardware ID. Now cpuctl
  shouldn't print confused output.

Revision 1.7.2.3 / (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.7.2.2: +16 -17 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

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

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.4.2.2: +10 -6 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:36 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.3.4.3: +8 -4 lines
Diff to previous 1.3.4.3 (colored)

Sync with HEAD.

Also fix build.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 4 13:02:41 2008 UTC (3 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4, 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
Branch point for: haad-dm
Changes since 1.8: +10 -6 lines
Diff to previous 1.8 (colored)

Check the result of allocation in the cases where size is passed by user.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:40 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.4.2.1: +8 -13 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:12 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.3.4.2: +17 -27 lines
Diff to previous 1.3.4.2 (colored)

Sync with HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Mon May 26 12:08:39 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.7: +8 -13 lines
Diff to previous 1.7 (colored)

Take the mutex pointer and waiters count out of sleepq_t: the values can
be or are maintained elsewhere. Now a sleepq_t is just a TAILQ_HEAD.

Revision 1.4.2.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.4: +12 -17 lines
Diff to previous 1.4 (colored)

sync with head.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:27 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.5: +4 -9 lines
Diff to previous 1.5 (colored)

sync with head.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Wed May 14 19:54:12 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.7.2.1: +10 -10 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Per discussion with ad at n dot o, revert signal mask handling
changes.

The l_sigstk changes are most likely totally un-needed as SA will
never use a signal stack - we send an upcall (or will as other
diffs are brought in).

The l_sigmask changes were too controvertial. In all honesty, I
think it's probably best to revert them. The main reason they were
there is the fact that in an SA process, we don't mask signals per
kernel thread, we mask them per user thread. In the kernel, we want
them all to get turned into upcalls. Thus the normal state of
l_sigmask in an SA process is for it to always be empty.

While we are in the process of delivering a signal, we want to
temporarily mask a signal (so we don't recursively exhaust our
upcall stacks). However signal delivery is rare (important, but
rare), and delivering back-to-back signals is even rarer. So rather
than cause every user of a signal mask to be prepared for this very
rare case, we will just add a second check later in the signal
delivery code. Said change is not in this diff.

This also un-compensates all of our compatability code for dealing
with SA. SA is a NetBSD-specific thing, so there's no need for
Irix, Linux, Solaris, SVR4 and so on to cope with it.

As previously, everything other than kern_sa.c compiles in i386
GENERIC as of this checkin. I will switch to ALL soon for compile
testing.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:05 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.7: +10 -10 lines
Diff to previous 1.7 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 30 12:45:21 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

PR kern/38547 select/poll do not set l_kpriority

Among other things this could have made X11 seem sluggish.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:04 2008 UTC (4 years ago) by martin
Branch: MAIN
Changes since 1.5: +2 -9 lines
Diff to previous 1.5 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.5 / (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-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.4: +10 -10 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Thu Apr 17 14:02:24 2008 UTC (4 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

s/selwakeup/selnotify/ in a comment.

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

Sync with HEAD.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sat Mar 29 20:47:01 2008 UTC (4 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.3.2.1: +844 -0 lines
Diff to previous 1.3.2.1 (colored)

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

Revision 1.3.4.1, Sat Mar 29 14:08:35 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.3: +0 -841 lines
FILE REMOVED

file sys_select.c was added on branch mjf-devfs2 on 2008-04-03 12:43:04 +0000

Revision 1.3.2.1, Sat Mar 29 14:08:35 2008 UTC (4 years, 1 month ago) by christos
Branch: christos-time_t
Changes since 1.3: +0 -841 lines
FILE REMOVED

file sys_select.c was added on branch christos-time_t on 2008-03-29 20:47:01 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 29 14:08:35 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Branch point for: mjf-devfs2, christos-time_t
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

selwakeup: convert a while() loop into a do/while() since the first test
isn't needed.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 27 18:30:15 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

Replace use of CACHE_LINE_SIZE in some obvious places.

Revision 1.1.2.2 / (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.1.2.1: +841 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.1.2.1, Sun Mar 23 14:02:49 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1: +0 -841 lines
FILE REMOVED

file sys_select.c was added on branch yamt-lazymbuf on 2008-03-24 09:39:02 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 23 14:02:49 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-lazymbuf

Split select/poll into their own file.

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>