The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:29 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.9.4.2: +8 -18 lines
Diff to previous 1.9.4.2 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 29 14:54:08 2008 UTC (4 years, 3 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, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-6-base, netbsd-6, 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, mjf-devfs2-base, mjf-devfs2, 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, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, HEAD
Changes since 1.22: +2 -4 lines
Diff to previous 1.22 (colored)

When reading a request from the kernel, only allocate as much memory
as needed to read a request instead of the maximum message size.
Insanely enough, this makes "cheap backend I/O" file systems such
dtfs and sysctlfs perform 10-30% better (depending on the average
size of incoming requests).

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jan 29 10:07:30 2008 UTC (4 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.21: +4 -12 lines
Diff to previous 1.21 (colored)

Fix a weirdosity in the framebuf gotfb interface: hand buffer
ownership to the called routine instead of keeping it.  This means
that callees must now destroy the buffer once they are done with it.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 28 18:35:51 2008 UTC (4 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.20: +7 -7 lines
Diff to previous 1.20 (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.9.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:52 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.9.4.1: +172 -142 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored)

sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 5 11:06:05 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

inverse inverse logic

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 5 10:13:37 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.18: +8 -10 lines
Diff to previous 1.18 (colored)

apply previous in a more readable way

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 5 04:29:10 2007 UTC (4 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.17: +11 -9 lines
Diff to previous 1.17 (colored)

"fix" complaints about type-punned pointers with some icky casts.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 4 21:24:13 2007 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.16: +172 -143 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Mon Nov 12 16:39:35 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.15: +12 -11 lines
Diff to previous 1.15 (colored)

* split the putter header into a kernel version and a userland version
  + install latter to /usr/include/dev/putter
* remove last dependencies to puffs from putter, it's completely
  independent now

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

sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 31 16:09:09 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Fix a few bugs and memleaks with the threading code.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 29 15:52:45 2007 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.13: +6 -2 lines
Diff to previous 1.13 (colored)

Sprinkle some hackish locks here and there, just enough to allow
libp2k & rump to run multithreaded.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 26 17:35:02 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Sun Oct 21 16:29:40 2007 UTC (4 years, 7 months ago) by he
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

To work around lint problems, add a LINTED comment on pooka's request.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 19 14:38:45 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

When doing a read operation, don't copy the whole kernel buffer to
userspace, since it doesn't contain any information yet.  I should
still rework this more so this is just a quickie to get the read/write
style interface more up to speed with the ioctl version.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 11 19:41:15 2007 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.9: +45 -74 lines
Diff to previous 1.9 (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.9.6.2 / (download) - annotate - [select for diffs], Thu Jul 19 12:52:29 2007 UTC (4 years, 10 months ago) by pooka
Branch: matt-mips64
Changes since 1.9.6.1: +243 -0 lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Don't float puffs_kargs needlessly around after mount, saves
a couple k of memory (and there was much rejoycing!)

Revision 1.9.6.1, Thu Jul 19 12:52:28 2007 UTC (4 years, 10 months ago) by pooka
Branch: matt-mips64
Changes since 1.9: +0 -243 lines
FILE REMOVED

file requests.c was added on branch matt-mips64 on 2007-07-19 12:52:29 +0000

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 19 12:52:28 2007 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6
Changes since 1.8: +4 -6 lines
Diff to previous 1.8 (colored)

Don't float puffs_kargs needlessly around after mount, saves
a couple k of memory (and there was much rejoycing!)

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 6 01:55:01 2007 UTC (4 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.7: +2 -5 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Fri May 11 21:27:13 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Step 2 of general-purpose eventloop: get rid of puffs_framebuf_eventloop().
puffs_mainloop() now handles that functionality as well.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 9 18:36:52 2007 UTC (5 years ago) by pooka
Branch: MAIN
Changes since 1.5: +7 -4 lines
Diff to previous 1.5 (colored)

Remove the puffs_usermount argument from puffs_req_handle().  It can
be found from the other arguments and this way puffs_req_handle() is
more symmetric with the other puffs_req() routines.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 13 13:35:46 2007 UTC (5 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.4: +6 -4 lines
Diff to previous 1.4 (colored)

Instead of keeping on adding parameters to puffs_mount(), make it
only take the bare essentials, which currently means removing
"maxreqlen" from the argument list (all current callers I'm aware
of set it as 0 anyway).  Introduce puffs_init(), which provides a
context for setting various parameters and puffs_domount(), which
can be used to mount the file system.  Keep puffs_mount() as a
shortcut for the above two for simple file systems.

Bump development ABI version to 13.  After all, it's Friday the 13th.
Watch out!  Bad things can happen on Friday the 13th. --No carrier--

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 20 14:37:06 2007 UTC (5 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Be consistent with the rest of the framework about the argument
order of puffs_docc and puffs_dopreq

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 20 13:52:14 2007 UTC (5 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.2: +40 -17 lines
Diff to previous 1.2 (colored)

be consistent in naming request handlers

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 29 15:28:11 2006 UTC (5 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.1: +78 -15 lines
Diff to previous 1.1 (colored)

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

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 7 23:15:20 2006 UTC (5 years, 5 months ago) by pooka
Branch: MAIN

outline & export code for interfacing with kernel GET/PUT requests

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>