The NetBSD Project

CVS log for src/lib/libpuffs/callcontext.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libpuffs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27.40.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:26 2019 UTC (6 months ago) by christos
Branch: phil-wifi
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.27.38.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:23 2018 UTC (16 months, 2 weeks ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 9 00:47:47 2018 UTC (17 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, netbsd-9-base, netbsd-9-0-RC1, netbsd-9, HEAD
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

revert previous now that MAP_ALIGNED has been fixed.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 8 16:48:47 2018 UTC (17 months ago) by christos
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

correct previous cast.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 8 16:39:27 2018 UTC (17 months ago) by christos
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

cast for lint

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:31 2012 UTC (7 years, 7 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.26: +11 -5 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with head

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 6 21:15:39 2011 UTC (8 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.26: +11 -5 lines
Diff to previous 1.26 (colored)

Deal with __MACHINE_STACK_GROWS_UP machines.

constify the other psize while I'm here.

Thanks to Christos for looking.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Nov 2 16:43:04 2011 UTC (8 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.25: +10 -2 lines
Diff to previous 1.25 (colored)

puffs_cc_yield: fix a cc leak.  PR/44679

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:09:22 2011 UTC (8 years, 9 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 4 09:47:47 2011 UTC (8 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

puffs__cc_destroy: clear PCC_HASCALLER.  the caller info is not
necessarily relevant to the next life of the cc.  this also fixes
the failure of the assertion in the next line.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 10 23:20:45 2011 UTC (8 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

typo in a comment

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:39:24 2008 UTC (11 years, 2 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21: +67 -7 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 11 16:23:37 2008 UTC (11 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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-premerge-20091211, 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-premerge-20101231, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.22: +36 -6 lines
Diff to previous 1.22 (colored)

clear cached puffs_cc's in puffs_exit()

Revision 1.22 / (download) - annotate - [select for diffs], Mon Aug 11 15:59:01 2008 UTC (11 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.21: +34 -4 lines
Diff to previous 1.21 (colored)

* make sure we come out of mainloop in the main context.  otherwise in
  certain cases the server would jump to hyperspace when unmounted
* sprinkle some debug prints

Revision 1.7.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:29 2008 UTC (11 years, 8 months ago) by matt
Branch: matt-armv6
Changes since 1.7.4.2: +135 -100 lines
Diff to previous 1.7.4.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 28 18:51:03 2008 UTC (11 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: wrstuden-revivesa
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Don't add asserts between testing and commit - especially not
if you're going to write "assert(foo = 0)"

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 28 18:35:49 2008 UTC (11 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.19: +130 -123 lines
Diff to previous 1.19 (colored)

Implement lazy contexts for file systems using puffs_mainloop().
Previously each request was executed on its own callcontext and
switched to every time the request was being processed.  Now requests
borrow the mainloop context and switch only if/when they yield.
This takes two context switches away from a file system request
bringing down the typical amounts 2->0 (e.g. dtfs) and 4->2 (e.g.
psshfs).

The interfaces for manually executing requests changed a bit:
puffs_dispatch_create() and puffs_dispatch_exec() must now be used.
They are not tested, as nothing in-tree wants them and I doubt
anyone else is really interested in them either.

Also do some misc code cleanup related to execution contexts.  The
"work-in-progress checkpoint" committed over a year ago was starting
to look slightly weed-infested.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 17 17:43:14 2008 UTC (11 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.18: +7 -5 lines
Diff to previous 1.18 (colored)

Fix fakecc case.

Noticed by Pavel Jirout on current-users

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jan 16 21:29:59 2008 UTC (11 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.17: +43 -17 lines
Diff to previous 1.17 (colored)

Cache a number of execution contexts instead of re-initializing
them every time.  Speeds up pure in-memory file systems such as
sysctlfs or dtfs quite a bit.  For actual I/O-workhorses the result
is of course less tasty.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jan 16 00:29:42 2008 UTC (11 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Use PROT_NONE page to protect bottom of stack from overrun

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:44 2008 UTC (11 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.7.4.1: +61 -37 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored)

sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 16 20:02:57 2007 UTC (11 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.15: +2 -16 lines
Diff to previous 1.15 (colored)

* nuke puffs_cc_get{specific,usermount} for good
* move prototypes for puffs_docc and puffs_dopufbuf into the
  public header, as they are should be exposed

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 4 21:24:10 2007 UTC (12 years ago) by pooka
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

Part 3/n of extensive changes to message handling:

Get rid of the original puffs_req(3) framework and use puffs_framebuf(3)
instead for file system requests.  It has the advantage of being
suitable for transporting a distributed message passing protocol
and therefore us being able to run the file system server on any
host.

Ok, puffs is not quite here yet: libpuffs needs to grow request
routing support and the message contents need to be munged into a
host independent format.  Saying which format would be telling,
but it might begin with an X, end in an L and have the 13th character
in the middle.  Keep an eye out for the sequels: Parts 3+m/n.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 29 17:47:54 2007 UTC (12 years ago) by pooka
Branch: MAIN
Changes since 1.13: +60 -21 lines
Diff to previous 1.13 (colored)

* allocate pcc as a slice from the stack instead of allocating it
  separately
* provide puffs_cc_getcc()

This is in preparation for the removal of you-should-guess-what as
an argument to routines here and there and everywhere.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:11:50 2007 UTC (12 years, 1 month ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.7: +91 -16 lines
Diff to previous 1.7 (colored)

sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 31 16:09:09 2007 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored)

Fix a few bugs and memleaks with the threading code.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 26 17:35:01 2007 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.11: +41 -11 lines
Diff to previous 1.11 (colored)

Add some very initial support for a threading worker model as an
alternative to the (vastly superior ;) continuation model.  This
is very preliminary stuff and not compiled by default (which it
even won't do without some other patches I cannot commit yet).

The raison d'commit of the patch is a snippet which ensures proper
in-order dispatching of all operations, including those which don't
require a response.  Previously many of them would be dispatched
simultaneosly, e.g. fsync and reclaim on the same node, which
obviously isn't all that nice for correct operation.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 26 13:51:14 2007 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.10: +13 -6 lines
Diff to previous 1.10 (colored)

mmap stacks, makes it possible to align them

Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 21 19:25:58 2007 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.9: +11 -2 lines
Diff to previous 1.9 (colored)

Add puffs_cc_schedule() which marks a pcc runnable and will pass
execution to it when in the main loop the next time.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 21 14:28:05 2007 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.8: +28 -2 lines
Diff to previous 1.8 (colored)

Always provide caller information from the kernel based on curlwp.
(but don't deprecate the old puffs_cid interface just yet)

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 11 19:41:14 2007 UTC (12 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.7: +2 -4 lines
Diff to previous 1.7 (colored)

Part 1/n of some pretty extensive changes to how the kernel module
interacts with the userspace file server:

  * since the kernel-user communication is not purely request-response
    anymore (hasn't been since 2006), try to rename some "request" to
    "message".  more similar mangling will take place in the future.

  * completely rework how messages are allocated.  previously most of
    them were borrowed from the stack (originally *all* of them),
    but now always allocate dynamically.  this makes the structure
    of the code much cleaner.  also makes it possible to fix a
    locking order violation.  it enables plenty of future enhancements.

  * start generalizing the transport interface to be independent of puffs

  * move transport interface to read/write instead of ioctl.  the
    old one had legacy design problems, and besides, ioctl's suck.
    implement a very generic version for now; this will be
    worked on later hopefully some day reaching "highly optimized".

  * implement libpuffs support behind existing library request
    interfaces.  this will change eventually (I hate those interfaces)

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 6 01:55:00 2007 UTC (12 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.6: +2 -5 lines
Diff to previous 1.6 (colored)

Move puffs to a two clause license where it already isn't so.  And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 15 13:44:46 2007 UTC (12 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.5: +20 -4 lines
Diff to previous 1.5 (colored)

Step 3 and currently final step of a more general purpose event loop:
support removal and addition of i/o file descriptors on the fly.

* detect closed file descriptors
* automatically free waiters of a dead file descriptor
* give the file server the possibility to specify a callback which
  notifies of a dead file descriptor
* move loop function to be a property of the mainloop instead of
  framebuf (doesn't change effective behaviour)
* add the possibility to configure a timespec parameter which
  attempts to call the loop function periodically
* move the event loop functions from the puffs_framebuf namespace
  to puffs_framev to differential between pure memory management
  functions

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 10 12:36:44 2007 UTC (12 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

assert that yield/continue is done only with a real continuation

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 19 14:45:03 2007 UTC (12 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.3: +9 -2 lines
Diff to previous 1.3 (colored)

add puffs_cc_getspecific(pcc), which is shorthand for:
puffs_getspecific(puffs_cc_getusermount(pcc))

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 17 23:00:16 2007 UTC (12 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

#include <ucontext.h>

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 6 18:22:09 2007 UTC (12 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.1: +5 -39 lines
Diff to previous 1.1 (colored)

* get rid of the mount callback; it's no great surprise to the
  server that it needs to mount the file system backend if it wants
  to call mount
* provide some options for getmntopts(), assume that callers will parse
  command line (or fstab) args
* reorganize the puffs_cc interface just a bit, preparing for a bigger
  revamp later

Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 29 15:28:11 2006 UTC (12 years, 11 months ago) by pooka
Branch: MAIN

checkpoint some experimental work-in-progress, namely:

Add support for having multiple outstanding operations.  This is done
by exposing enough interfaces so that it is convenient to have the
main event loop in the implementation itself and by providing a
continuation framework for convinient blocking and rescheduling.

works fine, but will undergo further cleanup & development

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>