#
74155368 |
| 23-Jan-2013 |
riastradh <riastradh@NetBSD.org> |
Assert equality, not assignment, in puffs__fsframe_cmp.
|
#
04973f74 |
| 29-Jan-2008 |
pooka <pooka@NetBSD.org> |
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
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).
show more ...
|
#
be5ed87c |
| 29-Jan-2008 |
pooka <pooka@NetBSD.org> |
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.
|
#
d1d05d65 |
| 28-Jan-2008 |
pooka <pooka@NetBSD.org> |
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
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.
show more ...
|
#
ca8fca7b |
| 05-Dec-2007 |
pooka <pooka@NetBSD.org> |
inverse inverse logic
|
#
8dad772f |
| 05-Dec-2007 |
pooka <pooka@NetBSD.org> |
apply previous in a more readable way
|
#
96302ffc |
| 05-Dec-2007 |
dogcow <dogcow@NetBSD.org> |
"fix" complaints about type-punned pointers with some icky casts.
|
#
61113f40 |
| 04-Dec-2007 |
pooka <pooka@NetBSD.org> |
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
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.
show more ...
|
#
9ac65ee1 |
| 12-Nov-2007 |
pooka <pooka@NetBSD.org> |
* 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
|
#
baea3628 |
| 31-Oct-2007 |
pooka <pooka@NetBSD.org> |
Fix a few bugs and memleaks with the threading code.
|
#
40ffc8b9 |
| 29-Oct-2007 |
pooka <pooka@NetBSD.org> |
Sprinkle some hackish locks here and there, just enough to allow libp2k & rump to run multithreaded.
|
#
edb40ac9 |
| 26-Oct-2007 |
pooka <pooka@NetBSD.org> |
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
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.
show more ...
|
#
71a13387 |
| 21-Oct-2007 |
he <he@NetBSD.org> |
To work around lint problems, add a LINTED comment on pooka's request.
|
#
cf6e3aa4 |
| 19-Oct-2007 |
pooka <pooka@NetBSD.org> |
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/
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.
show more ...
|
#
33c91738 |
| 11-Oct-2007 |
pooka <pooka@NetBSD.org> |
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'
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)
show more ...
|
#
f2825a0a |
| 19-Jul-2007 |
pooka <pooka@NetBSD.org> |
Don't float puffs_kargs needlessly around after mount, saves a couple k of memory (and there was much rejoycing!)
|
#
f8326bf9 |
| 06-Jun-2007 |
pooka <pooka@NetBSD.org> |
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...
|
#
e94b19cf |
| 11-May-2007 |
pooka <pooka@NetBSD.org> |
Step 2 of general-purpose eventloop: get rid of puffs_framebuf_eventloop(). puffs_mainloop() now handles that functionality as well.
|
#
48623090 |
| 09-May-2007 |
pooka <pooka@NetBSD.org> |
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.
|
#
37dd7942 |
| 13-Apr-2007 |
pooka <pooka@NetBSD.org> |
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 se
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--
show more ...
|
#
288823a7 |
| 20-Jan-2007 |
pooka <pooka@NetBSD.org> |
Be consistent with the rest of the framework about the argument order of puffs_docc and puffs_dopreq
|
#
84e83df1 |
| 20-Jan-2007 |
pooka <pooka@NetBSD.org> |
be consistent in naming request handlers
|
#
184a7d78 |
| 29-Dec-2006 |
pooka <pooka@NetBSD.org> |
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 e
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
show more ...
|
#
49df5bfc |
| 07-Dec-2006 |
pooka <pooka@NetBSD.org> |
outline & export code for interfacing with kernel GET/PUT requests
|