The NetBSD Project

CVS log for src/sys/fs/puffs/puffs_sys.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / puffs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.88 / (download) - annotate - [select for diffs], Sun Oct 5 20:40:46 2014 UTC (2 weeks ago) by apb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Add close brace, accidentally omitted from previous change.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Oct 5 14:13:14 2014 UTC (2 weeks ago) by apb
Branch: MAIN
Changes since 1.86: +9 -5 lines
Diff to previous 1.86 (colored)

Safer definitions of DPRINTF and DPRINTF_VERBOSE.

In the PUFFSDEBUG case, wrap do { ... } while (/*CONSTCOND*/0)
around the definitions.  In the non-PUFFSDEBUG case, define them
as ((void)0) instead of as empty.

Revision 1.84.4.2 / (download) - annotate - [select for diffs], Fri Aug 29 11:55:34 2014 UTC (7 weeks, 3 days ago) by martin
Branch: netbsd-7
Changes since 1.84.4.1: +2 -13 lines
Diff to previous 1.84.4.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

Pull up following revision(s) (requested by hannken in ticket #67):
	sys/fs/puffs/puffs_sys.h: revision 1.86
	sys/fs/puffs/puffs_vfsops.c: revision 1.114
	sys/fs/puffs/puffs_msgif.c: revision 1.95
	sys/fs/puffs/puffs_node.c: revision 1.32
	sys/fs/puffs/puffs_vnops.c: revision 1.184
Change puffs from hashlist to vcache.
- field "pa_nhashbuckets" of struct "puffs_kargs" becomes a no-op.
and should be removed on the next protocol version bump.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Aug 28 08:29:50 2014 UTC (7 weeks, 4 days ago) by hannken
Branch: MAIN
Changes since 1.85: +2 -13 lines
Diff to previous 1.85 (colored)

Change puffs from hashlist to vcache.
- field "pa_nhashbuckets" of struct "puffs_kargs" becomes a no-op.
  and should be removed on the next protocol version bump.

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Tue Aug 26 23:15:12 2014 UTC (7 weeks, 5 days ago) by riz
Branch: netbsd-7
Changes since 1.84: +3 -1 lines
Diff to previous 1.84 (colored)

Pull up following revision(s) (requested by manu in ticket #52):
	sys/fs/puffs/puffs_msgif.h: revision 1.81
	sys/fs/puffs/puffs_sys.h: revision 1.85
	sys/fs/puffs/puffs_vnops.c: revision 1.183
Add a oflags input field to open requests so that the filesystem can pass
back information about the file. Implement PUFFS_OPEN_IO_DIRECT, which
will force direct IO (bypassing page cache) for the file.

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:27 2014 UTC (2 months ago) by tls
Branch: tls-maxphys
Changes since 1.82.2.1: +13 -1 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Aug 16 16:19:41 2014 UTC (2 months ago) by manu
Branch: MAIN
Changes since 1.84: +3 -1 lines
Diff to previous 1.84 (colored)

Add a oflags input field to open requests so that the filesystem can pass
back information about the file. Implement PUFFS_OPEN_IO_DIRECT, which
will force direct IO (bypassing page cache) for the file.

Revision 1.78.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:01 2014 UTC (4 months, 4 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.78.2.2: +18 -2 lines
Diff to previous 1.78.2.2 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.83.6.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:06 2014 UTC (5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.83: +14 -2 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

sync with head

Revision 1.84 / (download) - annotate - [select for diffs], Thu Oct 17 21:03:27 2013 UTC (12 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.83: +14 -2 lines
Diff to previous 1.83 (colored)

- remove unused variables
- add _NOERROR flavor macros for the case where errors are ignored.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:28 2013 UTC (15 months, 4 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.82: +5 -1 lines
Diff to previous 1.82 (colored)

resync from head

Revision 1.83 / (download) - annotate - [select for diffs], Wed Mar 6 11:39:37 2013 UTC (19 months, 2 weeks ago) by yamt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.82: +5 -1 lines
Diff to previous 1.82 (colored)

comment

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:24 2012 UTC (23 months, 2 weeks ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.78.2.1: +20 -6 lines
Diff to previous 1.78.2.1 (colored) to branchpoint 1.78 (colored)

sync with head

Revision 1.78.8.2 / (download) - annotate - [select for diffs], Sun Aug 12 13:13:20 2012 UTC (2 years, 2 months ago) by martin
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.78.8.1: +19 -5 lines
Diff to previous 1.78.8.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

Pull up following revision(s) (requested by manu in ticket #438):
	lib/libperfuse/perfuse_priv.h: revision 1.31
	sys/fs/puffs/puffs_msgif.h: revision 1.80
	sys/fs/puffs/puffs_vnops.c: revision 1.171
	lib/libpuffs/puffs_ops.3: revision 1.31
	sys/fs/puffs/puffs_vnops.c: revision 1.172
	sys/fs/puffs/puffs_vnops.c: revision 1.173
	sys/fs/puffs/puffs_vnops.c: revision 1.174
	usr.sbin/perfused/perfused.c: revision 1.24
	sys/fs/puffs/puffs_sys.h: revision 1.80
	sys/fs/puffs/puffs_sys.h: revision 1.81
	sys/fs/puffs/puffs_sys.h: revision 1.82
	lib/libperfuse/subr.c: revision 1.19
	lib/libperfuse/perfuse.c: revision 1.30
	sys/fs/puffs/puffs_msgif.c: revision 1.90
	sys/fs/puffs/puffs_msgif.c: revision 1.91
	sys/fs/puffs/puffs_msgif.c: revision 1.92
	lib/libperfuse/ops.c: revision 1.59
	lib/libpuffs/puffs.3: revision 1.53
	lib/libperfuse/debug.c: revision 1.12
	lib/libpuffs/puffs.3: revision 1.54
	sys/fs/puffs/puffs_vnops.c: revision 1.167
	sys/fs/puffs/puffs_msgif.h: revision 1.79
	usr.sbin/perfused/msg.c: revision 1.21
	sys/fs/puffs/puffs_vfsops.c: revision 1.102
	sys/fs/puffs/puffs_vfsops.c: revision 1.103
	sys/fs/puffs/puffs_vfsops.c: revision 1.105
	lib/libpuffs/puffs.h: revision 1.123
	lib/libperfuse/perfuse_if.h: revision 1.20
	lib/libperfuse/perfuse.c: revision 1.29
	lib/libpuffs/dispatcher.c: revision 1.42
	lib/libpuffs/dispatcher.c: revision 1.43
- Fix same vnodes associated with multiple cookies
The scheme used to retreive known nodes on lookup was flawed, as it only
used parent and name. This produced a different cookie for the same file
if it was renamed, when looking up ../ or when dealing with multiple files
associated with the same name through link(2).
We therefore abandon the use of node name and introduce hashed lists of
inodes. This causes a huge rewrite of reclaim code, which do not attempt
to keep parents allocated until all their children are reclaimed
- Fix race conditions in reclaim
There are a few situations where we issue multiple FUSE operations for
a PUFFS operation. On reclaim, we therefore have to wait for all FUSE
operation to complete, not just the current exchanges. We do this by
introducing node reference count with node_ref() and node_rele().
- Detect data loss caused by FAF
VOP_PUTPAGES causes FAF writes where the kernel does not check the
operation result. At least issue a warning on error.
- Enjoy FAF shortcut on setattr
No need to wait for the result if the kernel does not want it. There is
however an exception for setattr that touch the size, we need to wait
for completion because we have other operations queued for after the
resize.
- Fix fchmod() on write-open file
fchmod() on a node open with write privilege will send setattr with both mode
and size set. This confuses some FUSE filesystem. Therefore we send two FUSE
operations, one for mode, and one for size.
- Remove node TTL handling for netbsd-5 for simplicity sake. The code
still builds on netbsd-5 but does not have the node TTL feature anymore.
It works fine with kernel support on netbsd-6.
- Improve PUFFS_KFLAG_CACHE_FS_TTL by reclaiming older inactive nodes.
The normal kernel behavior is to retain inactive nodes in the freelist
until it runs out of vnodes. This has some merit for local filesystems,
where the cost of an allocation is about the same as the cost of a
lookup. But that situation is not true for distributed filesystems.
On the other hand, keeping inactive nodes for a long time hold memory
in the file server process, and when the kernel runs out of vnodes, it
produce reclaim avalanches that increase lattency for other operations.
We do not reclaim inactive vnodes immediatly either, as they may be
looked up again shortly. Instead we introduce a grace time and we
reclaim nodes that have been inactive beyond the grace time.
- Fix lookup/reclaim race condition.
The above improvement undercovered a race condition between lookup and
reclaim. If we reclaimed a vnode associated with a userland cookie while
a lookup returning that same cookiewas inprogress, then the kernel ends
up with a vnode associated with a cookie that has been reclaimed in
userland. Next operation on the cookie will crash (or at least confuse)
the filesystem.
We fix this by introducing a lookup count in kernel and userland. On
reclaim, the kernel sends the count, which enable userland to detect
situation where it initiated a lookup that is not completed in kernel.
In such a situation, the reclaim must be ignored, as the node is about
to be looked up again.
Fix hang unmount bug introduced by last commit.
We introduced a slow queue for delayed reclaims, while the existing
queue for unmount, flush and exist has been renamed fast queue. Both
queues had timestamp for when an operation should be done, but it was
useless for the fast queue, which is always used to run an operation
ASAP. And the timestamp test had an error that turned ASAP into "at next
tick", but nobody what there to wake the thread at next tick, hence
the hang. The fix is to remove the useless and buggy timestamp test for
fast queue.
Rename slow sopreq queue into node sopreq queue, to refet the fact that
is only intended for postponed node reclaims.
When purging the node sopreq queue, do not call puffs_msg_sendresp(), as
it makes no sense.
Fix race condition between (create|mknod|mkdir|symlino) and reclaim, just
like we did it between lookup and reclaim.
Missing bit in previous commit (prevent race between create|mknod|mkdir|symlink
and reclaim)
Bump date for previous.
New sentence, new line; remove trailing whitespace; fix typos;
punctuation nits.
Add PUFFS_KFLAG_CACHE_DOTDOT so that vnodes hold a reference on their
parent, keeping them active, and allowing to lookup .. without sending
a request to the filesystem.
Enable the featuure for perfused, as this is how FUSE works.
Missing bit in previous commit (PUFFS_KFLAG_CACHE_DOTDOT option to avoid
looking up ..)

Revision 1.82 / (download) - annotate - [select for diffs], Sat Aug 11 01:10:11 2012 UTC (2 years, 2 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored)

Missing bit in previous commit (PUFFS_KFLAG_CACHE_DOTDOT option to avoid
looking up ..)

Revision 1.81 / (download) - annotate - [select for diffs], Fri Jul 27 07:38:44 2012 UTC (2 years, 2 months ago) by manu
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Rename slow sopreq queue into node sopreq queue, to refet the fact that
is only intended for postponed node reclaims.
When purging the node sopreq queue, do not call puffs_msg_sendresp(), as
it makes no sense.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jul 21 05:17:10 2012 UTC (2 years, 3 months ago) by manu
Branch: MAIN
Changes since 1.79: +17 -6 lines
Diff to previous 1.79 (colored)

- Improve PUFFS_KFLAG_CACHE_FS_TTL by reclaiming older inactive nodes.

The normal kernel behavior is to retain inactive nodes in the freelist
until it runs out of vnodes. This has some merit for local filesystems,
where the cost of an allocation is about the same as the cost of a
lookup. But that situation is not true for distributed filesystems.
On the other hand, keeping inactive nodes for a long time hold memory
in the file server process, and when the kernel runs out of vnodes, it
produce reclaim avalanches that increase lattency for other operations.

We do not reclaim inactive vnodes immediatly either, as they may be
looked up again shortly. Instead we introduce a grace time and we
reclaim nodes that have been inactive beyond the grace time.

- Fix lookup/reclaim race condition.

The above improvement undercovered a race condition between lookup and
reclaim. If we reclaimed a vnode associated with a userland cookie while
a lookup returning that same cookiewas inprogress, then the kernel ends
up with a vnode associated with a cookie that has been reclaimed in
userland. Next operation on the cookie will crash (or at least confuse)
the filesystem.

We fix this by introducing a lookup count in kernel and userland. On
reclaim, the kernel sends the count, which enable userland to detect
situation where it initiated a lookup that is not completed in kernel.
In such a situation, the reclaim must be ignored, as the node is about
to be looked up again.

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:03 2012 UTC (2 years, 5 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.78: +8 -1 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

sync to latest -current.

Revision 1.78.8.1 / (download) - annotate - [select for diffs], Mon Apr 23 16:49:01 2012 UTC (2 years, 5 months ago) by riz
Branch: netbsd-6
Changes since 1.78: +8 -1 lines
Diff to previous 1.78 (colored)

Pull up following revision(s) (requested by manu in ticket #195):
	lib/libskey/skeysubr.c: revision 1.27
	lib/libkvm/kvm_getloadavg.c: revision 1.11
	lib/libwrap/update.c: revision 1.9
	lib/liby/yyerror.c: revision 1.9
	lib/libpuffs/puffs_ops.3: revision 1.30
	lib/libwrap/misc.c: revision 1.10
	lib/libwrap/hosts_access.c: revision 1.20
	lib/libpuffs/pnode.c: revision 1.11
	lib/libperfuse/subr.c: revision 1.17
	lib/libpuffs/pnode.c: revision 1.12
	lib/libperfuse/subr.c: revision 1.18
	lib/libwrap/options.c: revision 1.15
	lib/libwrap/fix_options.c: revision 1.11
	lib/libperfuse/ops.c: revision 1.52
	lib/libperfuse/ops.c: revision 1.53
	lib/libperfuse/ops.c: revision 1.54
	lib/libwrap/hosts_ctl.c: revision 1.5
	lib/libintl/gettext.c: revision 1.27
	lib/libwrap/shell_cmd.c: revision 1.6
	lib/libpuffs/dispatcher.c: revision 1.39
	lib/libperfuse/perfuse_priv.h: revision 1.27
	lib/libwrap/socket.c: revision 1.19
	lib/libpuffs/puffs.3: revision 1.50
	lib/libperfuse/perfuse_priv.h: revision 1.28
	lib/libpuffs/puffs_priv.h: revision 1.45
	lib/libpuffs/puffs.3: revision 1.51
	lib/libperfuse/perfuse_priv.h: revision 1.29
	lib/libwrap/percent_x.c: revision 1.5
	lib/libpuffs/puffs.3: revision 1.52
	lib/libperfuse/debug.c: revision 1.11
	sys/fs/puffs/puffs_vnops.c: revision 1.165
	lib/libwrap/tcpd.h: revision 1.13
	sys/fs/puffs/puffs_vnops.c: revision 1.166
	lib/libwrap/eval.c: revision 1.7
	sys/fs/puffs/puffs_msgif.h: revision 1.78
	sys/fs/puffs/puffs_vfsops.c: revision 1.101
	lib/libwrap/rfc931.c: revision 1.9
	lib/libwrap/clean_exit.c: revision 1.5
	lib/libpuffs/puffs.h: revision 1.120
	lib/libc/stdlib/jemalloc.c: revision 1.27
	lib/librmt/rmtlib.c: revision 1.26
	lib/libpuffs/puffs.h: revision 1.121
	sys/fs/puffs/puffs_sys.h: revision 1.79
	lib/librumpclient/rumpclient.c: revision 1.48
	lib/libwrap/refuse.c: revision 1.5
	lib/libperfuse/perfuse.c: revision 1.26
	lib/libperfuse/perfuse.c: revision 1.27
	tests/fs/puffs/t_fuzz.c: revision 1.5
	lib/libperfuse/perfuse.c: revision 1.28
	lib/libpuffs/dispatcher.c: revision 1.40
	sys/fs/puffs/puffs_node.c: revision 1.24
	lib/libwrap/diag.c: revision 1.9
	lib/libintl/textdomain.c: revision 1.13
Use C89 function definition
Add name and atttribute cache with filesytem provided TTL.
lookup, create, mknod, mkdir, symlink, getattr and setattr messages
have been extended so that attributes and their TTL can be provided
by the filesytem. lookup, create, mknod, mkdir, and symlink messages
are also extended so that the filesystem can provide name TTL.
Add PUFFS_KFLAG_CACHE_FS_TTL flag to puffs_init(3) to use name and
attribute cache with filesystem provided TTL.
lookup, create, mknod, mkdir, symlink, getattr and setattr messages
have been extended so that attributes and their TTL can be provided
by the filesytem. lookup, create, mknod, mkdir, and symlink messages
are also extended so that the filesystem can provide name TTL.
The filesystem updates attributes and TTL using
puffs_pn_getvap(3), puffs_pn_getvattl(3), and puffs_pn_getcnttl(3)
Use new PUFFS_KFLAG_CACHE_FS_TTL option to puffs_init(3) so that
FUSE TTL on name and attributes are used. This save many PUFFS
operations and improves performances.
PUFFS_KFLAG_CACHE_FS_TTL is #ifdef'ed in many places for now so that
libperfuse can still be used on netbsd-5.
Split file system.
Comma fixes.
Remove dangling "and".
Bump date for previous.
- Makesure update_va does not change vnode size when it should not. For
instance when doing a fault-issued VOP_GETPAGES within VOP_WRITE, changing
size leads to panic: genfs_getpages: past eof.
-Handle ticks wrap around for vnode name andattribute timeout
- When using PUFFS_KFLAG_CACHE_FS_TTL, do not use puffs_node to carry
  attribute and TTL fora newly created node. Instead extend puffs_newinfo
  and add puffs_newinfo_setva() and puffs_newinfo_setttl()
- Remove node_mk_common_final in libperfuse. It used to set uid/gid for
  a newly created vnode but has been made redundant along time ago since
  uid and gid are properly set in FUSE header.
- In libperfuse, check for corner case where opc = 0 on INACTIVE and   RECLAIM
(how is it possible? Check for it to avoid a crash anyway)
- In libperfuse, make sure we unlimit RLIMIT_AS and RLIMIT_DATA so that
  we do notrun out of memory because the kernel is lazy at reclaiming vnodes.
- In libperfuse, cleanup style of perfuse_destroy_pn()
Do not set PUFFS_KFLAG_CACHE_FS_TTL for PUFFS tests

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:19 2012 UTC (2 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.78: +8 -1 lines
Diff to previous 1.78 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Sun Apr 8 15:04:41 2012 UTC (2 years, 6 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.78: +8 -1 lines
Diff to previous 1.78 (colored)

Add name and atttribute cache with filesytem provided TTL.
lookup, create, mknod, mkdir, symlink, getattr and setattr messages
have been extended so that attributes and their TTL can be provided
by the filesytem. lookup, create, mknod, mkdir, and symlink messages
are also extended so that the filesystem can provide name TTL.

Revision 1.70.20.3 / (download) - annotate - [select for diffs], Sat Sep 17 18:53:29 2011 UTC (3 years, 1 month ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.70.20.2: +3 -1 lines
Diff to previous 1.70.20.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Pull up following revision(s) (requested by manu in ticket #1666):
	sys/fs/puffs/puffs_sys.h: revision 1.78 via patch
	sys/fs/puffs/puffs_node.c: revision 1.20 via patch
	sys/fs/puffs/puffs_vnops.c: revision 1.155 via patch
Add a mutex for operations that touch size (setattr, getattr, write, fsync).
This is required to avoid data corruption bugs, where a getattr slices
itself within a setattr operation, and sets the size to the stall value
it got from the filesystem. That value is smaller than the one set by
setattr, and the call to uvm_vnp_setsize() trigged a spurious truncate.
The result is a chunk of zeroed data in the file.
Such a situation can easily happen when the ioflush thread issue a
VOP_FSYNC/puffs_vnop_sync/flushvncache/dosetattrn while andother process
do a sys_stat/VOP_GETATTR/puffs_vnop_getattr.
This mutex on size operation can be removed the day we decide VOP_GETATTR
has to operated on a locked vnode, since the other operations that touch
size already require that.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Aug 29 04:12:45 2011 UTC (3 years, 1 month ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, 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-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.77: +3 -1 lines
Diff to previous 1.77 (colored)

Add a mutex for operations that touch size (setattr, getattr, write, fsync).

This is required to avoid data corruption bugs, where a getattr slices
itself within a setattr operation, and sets the size to the stall value
it got from the filesystem. That value is smaller than the one set by
setattr, and the call to uvm_vnp_setsize() trigged a spurious truncate.
The result is a chunk of zeroed data in the file.

Such a situation can easily happen when the ioflush thread issue a
VOP_FSYNC/puffs_vnop_sync/flushvncache/dosetattrn while andother process
do a sys_stat/VOP_GETATTR/puffs_vnop_getattr.

This mutex on size operation can be removed the day we decide VOP_GETATTR
has to operated on a locked vnode, since the other operations that touch
size already require that.

Revision 1.70.20.2 / (download) - annotate - [select for diffs], Sat Jun 18 16:19:39 2011 UTC (3 years, 4 months ago) by bouyer
Branch: netbsd-5
Changes since 1.70.20.1: +2 -1 lines
Diff to previous 1.70.20.1 (colored) to branchpoint 1.70 (colored)

Pull up following revision(s) (requested by manu in ticket #1623):
	lib/libpuffs/puffs.c: revision 1.116
	sys/fs/puffs/puffs_vnops.c: revision 1.151
Call advlock method if supplied

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:08 2011 UTC (3 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.75: +7 -1 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

sync with head

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jan 11 14:04:54 2011 UTC (3 years, 9 months ago) by kefren
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.76: +3 -1 lines
Diff to previous 1.76 (colored)

add advlock to puffs. ok pooka@
should fix kern/43321

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:20 2010 UTC (4 years, 2 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.75: +5 -1 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Sync with HEAD.

Revision 1.70.10.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:35 2010 UTC (4 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.70.10.1: +5 -1 lines
Diff to previous 1.70.10.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

sync with head.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jul 6 13:47:47 2010 UTC (4 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231
Changes since 1.75: +5 -1 lines
Diff to previous 1.75 (colored)

Add compat to enable running puffs in a 64bit time_t kernel against
a server which runs in 32bit time_t namespace.

Revision 1.70.28.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:13 2010 UTC (4 years, 6 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.70: +25 -1 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync to netbsd-5

Revision 1.70.10.1 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:14 2010 UTC (4 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.70: +28 -2 lines
Diff to previous 1.70 (colored)

sync with head

Revision 1.70.20.1 / (download) - annotate - [select for diffs], Sat Jan 9 01:22:57 2010 UTC (4 years, 9 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-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.70: +25 -1 lines
Diff to previous 1.70 (colored)

Pull up following revision(s) (requested by pooka in ticket #1212):
	sys/fs/puffs/puffs_msgif.c: revision 1.76 via patch
	sys/fs/puffs/puffs_sys.h: revision 1.73 via patch
	sys/fs/puffs/puffs_vfsops.c: revision 1.84 via patch
Process flush requests from the file server in a separate thread
context.  This fixes a long-standing but seldomly seen deadlock,
where the kernel was holding pages busy (due to e.g. readahead
request) while waiting for the server to respond, and the server
made a callback into the kernel asking to invalidate those pages.
... or, well, theoretically fixes, since I didn't have any reliable
way of repeating the deadlock and I think I saw it only twice.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jan 7 23:02:34 2010 UTC (4 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

Rename PUFFS_SOPREQ_EXIT to PUFFS_SOPREQSYS_EXIT to better signal
it comes from within the kernel instead of as a direct result of
a user request.

no functional change

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jan 7 22:45:31 2010 UTC (4 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Add a PUFFS_UNMOUNT server->kernel request, which causes the kernel
to initiate self destruct, i.e. unmount(MNT_FORCE).  This, however,
is a semi-controlled self-destruct, since all caches are flushed
before the (possibly) violent unmount takes place.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Dec 7 20:57:55 2009 UTC (4 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.72: +25 -1 lines
Diff to previous 1.72 (colored)

Process flush requests from the file server in a separate thread
context.  This fixes a long-standing but seldomly seen deadlock,
where the kernel was holding pages busy (due to e.g. readahead
request) while waiting for the server to respond, and the server
made a callback into the kernel asking to invalidate those pages.
... or, well, theoretically fixes, since I didn't have any reliable
way of repeating the deadlock and I think I saw it only twice.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Nov 5 19:42:44 2009 UTC (4 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

Kill suspend support.  It was never implemented correctly:
  * it depended on the biglock (in a very cruel way)
  * it was attached to userspace transactions rather than logical
    fs operations

(If someone wants to revisit it some day, most of the stuff can be
reused from cvs history)

Revision 1.71 / (download) - annotate - [select for diffs], Thu Nov 5 19:22:57 2009 UTC (4 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

Reinstante PNODE_DYING.  vmlocking had a brief hiatus when it was not
a valid optimization, but that's long gone and once VOP_INACTIVE is
called and the file server says that the vnode is going to be recycled,
it really is going to be recycled extra references gained or not.

Revision 1.48.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:56 2008 UTC (6 years, 6 months ago) by matt
Branch: matt-armv6
Changes since 1.48.6.2: +12 -10 lines
Diff to previous 1.48.6.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with HEAD

Revision 1.59.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:40 2008 UTC (6 years, 8 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59.4.3: +13 -12 lines
Diff to previous 1.59.4.3 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Sync with HEAD.

Revision 1.16.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:59 2008 UTC (6 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.8: +12 -10 lines
Diff to previous 1.16.2.8 (colored) next main 1.17 (colored)

sync with head.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jan 28 21:06:37 2008 UTC (6 years, 8 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-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, 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, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, netbsd-5, matt-nb5-mips64
Changes since 1.69: +12 -10 lines
Diff to previous 1.69 (colored)

For code clarity typedef void *puffs_cookie_t.

No functional change.

Revision 1.16.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:51 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.7: +3 -5 lines
Diff to previous 1.16.2.7 (colored)

sync with head

Revision 1.48.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:48 2008 UTC (6 years, 9 months ago) by matt
Branch: matt-armv6
Changes since 1.48.6.1: +37 -32 lines
Diff to previous 1.48.6.1 (colored) to branchpoint 1.48 (colored)

sync with HEAD

Revision 1.67.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:27 2008 UTC (6 years, 9 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.67.4.1: +1 -1 lines
Diff to previous 1.67.4.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Sync with HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jan 2 22:37:20 2008 UTC (6 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

More type-punning workarounds.  Curiously the kernel compilation
flags cause gcc to not complain.

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:34 2008 UTC (6 years, 9 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored)

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:43 2008 UTC (6 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored)

Merge vmlocking2 to head.

Revision 1.59.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:47 2007 UTC (6 years, 9 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59.4.2: +2 -3 lines
Diff to previous 1.59.4.2 (colored) to branchpoint 1.59 (colored)

Sync with HEAD.

Revision 1.65.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:33 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking2
Changes since 1.65.2.2: +2 -3 lines
Diff to previous 1.65.2.2 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Sync with head.

Revision 1.48.4.7 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:10 2007 UTC (6 years, 10 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.48.4.6: +4 -3 lines
Diff to previous 1.48.4.6 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Dec 8 19:57:04 2007 UTC (6 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.66: +2 -3 lines
Diff to previous 1.66 (colored)

Now that "l" is gone both as an argument to operations and from
componentname, remove all vestiges of puffs_cid.

Revision 1.59.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:18 2007 UTC (6 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59.4.1: +3 -3 lines
Diff to previous 1.59.4.1 (colored) to branchpoint 1.59 (colored)

Sync with HEAD.

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:38 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.65.2.1: +3 -1 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored)

Sync with head.

Revision 1.16.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:05 2007 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.6: +30 -13 lines
Diff to previous 1.16.2.6 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Wed Dec 5 12:11:56 2007 UTC (6 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Changes since 1.65: +3 -1 lines
Diff to previous 1.65 (colored)

Send a response message for flush operations from the kernel instead
of abusing the return value of write(2).

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:07 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking2
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.48.4.6 / (download) - annotate - [select for diffs], Wed Nov 21 21:55:55 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.48.4.5: +29 -14 lines
Diff to previous 1.48.4.5 (colored) to branchpoint 1.48 (colored)

Sync with HEAD.

Revision 1.59.2.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:44 2007 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.59.2.2: +1 -3 lines
Diff to previous 1.59.2.2 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Tue Nov 20 11:51:02 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.64: +1 -3 lines
Diff to previous 1.64 (colored)

Retire M_PUFFS, use kmem(9) instead.

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:29 2007 UTC (6 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59: +34 -27 lines
Diff to previous 1.59 (colored)

Sync with HEAD.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:45 2007 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.59.2.1: +28 -11 lines
Diff to previous 1.59.2.1 (colored) to branchpoint 1.59 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Sat Nov 17 21:55:29 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Make puffs_updatenode() take a puffs_node instead of a vnode.  This
way we don't need to worry if a vnode has been reclaimed from under
us.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Nov 17 18:09:04 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.62: +3 -1 lines
Diff to previous 1.62 (colored)

Implement a biodone callback for async writes similar to reads and
use that when possible.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Nov 16 20:32:18 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.61: +26 -11 lines
Diff to previous 1.61 (colored)

Restructure the messaging interface a bit more: make all interfacing
with the file server happen through puffs_msg_enqueue() and
puffs_msg_wait() instead of having a billion different routines.
Build the existing system upon these two.  Most importantly though,
decouple insertation into the op queue from the actual wait.  This
is useful for a number of reasons coming soon to a cvs repo near you.

Revision 1.16.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:36 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.5: +6 -16 lines
Diff to previous 1.16.2.5 (colored)

sync with head.

Revision 1.48.4.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:37 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.48.4.4: +2 -2 lines
Diff to previous 1.48.4.4 (colored) to branchpoint 1.48 (colored)

Sync with HEAD.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:45 2007 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.59: +6 -16 lines
Diff to previous 1.59 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Mon Nov 12 17:42:13 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Bounds-check responses from userspace.

Revision 1.48.4.4 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:53 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.48.4.3: +6 -16 lines
Diff to previous 1.48.4.3 (colored) to branchpoint 1.48 (colored)

Sync with HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Nov 10 21:45:07 2007 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.59: +6 -16 lines
Diff to previous 1.59 (colored)

Part 2/n of extensive changes to request transport to/from userspace:

Rip the transport code completely out of puffs and generalize it
into an independent module which will be used for multiple purposes
in the future.  This module is called the Pass-to-Userspace
Transporter (known as "putter" among friends).

This is very much work-in-progress and one dependency with puffs
remains: the request framing format.

The device name is still /dev/puffs, but that will change soon.

Users of puffs need the following in their kernel configs now:
pseudo-device   putter

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:16 2007 UTC (6 years, 11 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.48: +70 -51 lines
Diff to previous 1.48 (colored)

sync with HEAD

Revision 1.16.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:11 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.4: +70 -51 lines
Diff to previous 1.16.2.4 (colored)

sync with head.

Revision 1.48.4.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:19 2007 UTC (6 years, 11 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.48.4.2: +41 -40 lines
Diff to previous 1.48.4.2 (colored) to branchpoint 1.48 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.48.8.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:32 2007 UTC (7 years ago) by yamt
Branch: yamt-x86pmap
Changes since 1.48.8.1: +41 -40 lines
Diff to previous 1.48.8.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with head.

Revision 1.25.2.8 / (download) - annotate - [select for diffs], Fri Oct 12 17:03:18 2007 UTC (7 years ago) by ad
Branch: vmlocking
Changes since 1.25.2.7: +41 -40 lines
Diff to previous 1.25.2.7 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Oct 11 19:41:14 2007 UTC (7 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.58: +41 -25 lines
Diff to previous 1.58 (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.58 / (download) - annotate - [select for diffs], Tue Oct 9 20:57:06 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.57: +1 -14 lines
Diff to previous 1.57 (colored)

g/c more unused stuff

Revision 1.57 / (download) - annotate - [select for diffs], Tue Oct 9 15:49:34 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.56: +1 -3 lines
Diff to previous 1.56 (colored)

g/c vntouser_req(), it's not used anymore

Revision 1.25.2.7 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:19 2007 UTC (7 years ago) by ad
Branch: vmlocking
Changes since 1.25.2.6: +34 -16 lines
Diff to previous 1.25.2.6 (colored)

Sync with head.

Revision 1.48.4.2 / (download) - annotate - [select for diffs], Sun Oct 7 13:25:07 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.48.4.1: +1 -11 lines
Diff to previous 1.48.4.1 (colored) to branchpoint 1.48 (colored)

Sync with HEAD.

Revision 1.48.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:29:49 2007 UTC (7 years ago) by yamt
Branch: yamt-x86pmap
Changes since 1.48: +34 -16 lines
Diff to previous 1.48 (colored)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Oct 4 21:20:47 2007 UTC (7 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.55: +1 -11 lines
Diff to previous 1.55 (colored)

g/c the "sizeop" code previous used for ioctl/fcntl.  It was already
commented out and has bitrotted beyond all recognition, so it needs
complete rethinking.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:53 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.48: +34 -6 lines
Diff to previous 1.48 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Oct 2 01:17:17 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.54: +3 -1 lines
Diff to previous 1.54 (colored)

If kernel resource allocation fails after the file server has
committed something, issue an abort.  The abort is done through
the regular op channel, e.g. failed mkdir leads to regular rmdir,
inactive and reclaim.  No internal interface is planned currently
for the one file system out of a million which would implement it
to benefit from the one case in a billion where kernel resource
allocation actually does fail and out of that one case in a trillion
where internal vs. external would make a difference.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Oct 1 21:09:08 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.53: +18 -5 lines
Diff to previous 1.53 (colored)

* better error checking: validate error values received from userland
  to be vaild errno values
* include string describing error in PUFFS_ERR
* get rid of union in puffs_req, it's nothing but trouble
* pass pmp to async i/o callbacks

Revision 1.53 / (download) - annotate - [select for diffs], Thu Sep 27 23:21:08 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored)

Split routines handling nodes from puffs_subr to puffs_node.
No functional change.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Sep 27 21:44:12 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Differentiate between cookie2vnode returning an error and
return to caller, address unknown: no such cookie, no such node.
Make the callers use this info to either create a new vnode or bail.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 27 21:14:50 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Add error notifications, which are used to deliver errors from the
kernel to the file server for silly things the file server did,
e.g. attempting to create a file with size VSIZENOTSET.  The file
server can handle these as it chooses, but the default action is
for it to throw its hands in the air and sing "goodbye, cruel world,
it's over, walk on by".

Revision 1.50 / (download) - annotate - [select for diffs], Thu Sep 27 14:35:15 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.49: +11 -2 lines
Diff to previous 1.49 (colored)

Fix a race in how new cookies are checked.  Previously the checking
was done separate of inserting the cookie into the lookup structure
and without any form of interlock.  This could lead to the same
cookie pointing to two different nodes.  Remedy the race by creating
a separate "checked and ready to be inserted" cookie list which
serves as an interlock without having to hold a fs-global creation
lock.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Sep 24 19:15:42 2007 UTC (7 years ago) by pooka
Branch: MAIN
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (colored)

add a few comments and g/c dead code

Revision 1.25.2.6 / (download) - annotate - [select for diffs], Sun Sep 16 19:04:30 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.25.2.5: +1 -2 lines
Diff to previous 1.25.2.5 (colored)

Checkpoint work in progress on the vnode lifecycle and reference counting
stuff. This makes it work properly without kernel_lock and fixes a few
quite old bugs. See vfs_subr.c 1.283.2.17 for details.

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:30 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.3: +95 -47 lines
Diff to previous 1.16.2.3 (colored)

sync with head.

Revision 1.25.2.5 / (download) - annotate - [select for diffs], Mon Aug 20 21:26:09 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.25.2.4: +3 -3 lines
Diff to previous 1.25.2.4 (colored)

Sync with HEAD.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:59 2007 UTC (7 years, 2 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD.

Revision 1.48.10.2 / (download) - annotate - [select for diffs], Mon Jul 30 09:04:59 2007 UTC (7 years, 2 months ago) by pooka
Branch: matt-mips64
Changes since 1.48.10.1: +268 -0 lines
Diff to previous 1.48.10.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Move PUFFS_TYPEPREFIX to puffs_msgif.h since it's used in a macro there.

Revision 1.48.10.1, Mon Jul 30 09:04:58 2007 UTC (7 years, 2 months ago) by pooka
Branch: matt-mips64
Changes since 1.48: +0 -268 lines
FILE REMOVED

file puffs_sys.h was added on branch matt-mips64 on 2007-07-30 09:04:59 +0000

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 30 09:04:58 2007 UTC (7 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.47: +1 -3 lines
Diff to previous 1.47 (colored)

Move PUFFS_TYPEPREFIX to puffs_msgif.h since it's used in a macro there.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jul 22 18:22:49 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.46: +3 -1 lines
Diff to previous 1.46 (colored)

Keep track of the maximum size we have supplied the file server (or
it has supplied us).  If we fault pages which are at offset >= server
size, but less than the in-kernel vnode size, inform the file server
of the latest developments in file size before issueing the fault.
The avoids confusion with files which are not written start to finish.

fixes kern/36429 by yamt

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jul 17 11:29:43 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Set a file server supplied file system type in the type field and set
the mntfromname to be the place mounted from instead of the type.

Revision 1.25.2.4 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:31 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.25.2.3: +12 -6 lines
Diff to previous 1.25.2.3 (colored)

Sync with head.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:29 2007 UTC (7 years, 3 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.25: +95 -56 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jul 1 22:54:16 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)

Give the file server to ability to request the entire pathname buffer
under lookup by using PUFFS_KFLAG_LOOKUP_FULLPNBUF instead just the
current component.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jul 1 17:22:15 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Instead of supplying a plain pid, supply an abstract struct puffs_cid *,
which can currently be used to query the pid and lwpid.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Jul 1 15:30:16 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.42: +4 -3 lines
Diff to previous 1.42 (colored)

make puffs_cred an opaque type

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jun 24 22:16:04 2007 UTC (7 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.41: +5 -2 lines
Diff to previous 1.41 (colored)

Split the NOCACHE option in twain: NOCACHE_NAME & NOCACHE_PAGE.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jun 21 14:54:49 2007 UTC (7 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.40: +2 -3 lines
Diff to previous 1.40 (colored)

Refactor the pnode2vnode translation slightly so that VFS_ROOT
can use it directly.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jun 21 14:11:34 2007 UTC (7 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

Reorganize how the root vnode is fetched so that it doesn't always
go through VFS_ROOT() and allow to fetch it without locking it.
This allows us to call the cache flush operations also for the root
vnode and most notably fixes e.g. a "No such file or directory"
for a psshfs root directory ls -l when a file was locally deleted
and remotely re-created.

Also fix some sloppy programming in root node fetch (mostly cosmetic).

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:02 2007 UTC (7 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.25.2.2: +1 -4 lines
Diff to previous 1.25.2.2 (colored)

Sync with head.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:15:00 2007 UTC (7 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.25.2.1: +44 -21 lines
Diff to previous 1.25.2.1 (colored)

Sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jun 6 01:55:00 2007 UTC (7 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.38: +1 -4 lines
Diff to previous 1.38 (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.38 / (download) - annotate - [select for diffs], Sat May 19 16:50:49 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

forgot to commit this with puffs_vnops.c 1.72:

Actually, we do need separate "no references in file server" and
"noref + inactive" flags if we wish to correctly support unix open
file semantics and optimize away pre-reclaim cache flushes.  So,
add PNODE_DYING which stands for norefs + inactive.

Revision 1.37 / (download) - annotate - [select for diffs], Fri May 18 15:46:09 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Introduce noref setbacks, which the file server can use to signal
the kernel it has 0 references to the node in question.  In other
words, this can be used to avoid inactive(), or, if the file server
does not implement inactive, prompt reclaim for removed nodes.

Revision 1.36 / (download) - annotate - [select for diffs], Fri May 18 13:53:09 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.35: +12 -1 lines
Diff to previous 1.35 (colored)

Support VOP_POLL.  This requires some acrobatics on the puffs_node,
as we give a reference to userspace for the puffs_node for the
duration of the poll call.  So reference count puffs_node separately
from the parent vnode.  vref()/vrele() is not possible due to a possible
surprise visit from VOP_INACTIVE.

Revision 1.35 / (download) - annotate - [select for diffs], Thu May 17 13:59:22 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.34: +7 -4 lines
Diff to previous 1.34 (colored)

Make it possible for the file server to specify the root vnode type
and other information instead of always using VDIR.  To make this
possible without races, require all root node information already
in puffs_mount() and nuke puffs_start2() and the associated start
operation completely.

requested/inspired by Tobias Nygren

Revision 1.24.2.5 / (download) - annotate - [select for diffs], Thu May 17 13:41:44 2007 UTC (7 years, 5 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.24.2.4: +9 -8 lines
Diff to previous 1.24.2.4 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 7 17:14:54 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.33: +9 -8 lines
Diff to previous 1.33 (colored)

Introduce puffs "setbacks", which can be used to set certain flags
for nodes upon return from the userspace.  Currently it can be used
to indicate that the file server should be notified of "inactive"
in case the file server has opted to not receive inactive every
time the reference count for a vnode drops to zero.  (inactive is
a common event, almost never requires any action and must be executed
sychronously, so it is wasteful).

While doing this, cleanup the release-relock nonsense from the
vntouser*() arguments.  It was never enabled and the whole LOCKEDVP()
concept was very broken to begin with.

Revision 1.24.2.4 / (download) - annotate - [select for diffs], Mon May 7 10:55:42 2007 UTC (7 years, 5 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.24.2.3: +15 -8 lines
Diff to previous 1.24.2.3 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Tue May 1 12:18:40 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.32: +10 -7 lines
Diff to previous 1.32 (colored)

Fix a problem introduced when I converted puffs to use newlock2:
when unmounting the file system in case of a certain timing (and
possibly some other conditions), a thread would wait on a condition
variable, while another thread broadcast the cv and immediately
proceeded to destroy it.  The result was a system frozen completely
solid shorly after the process waiting for the cv woke up.  So
introduce reference counting to synchronize destruction of the
resources in unmount.

I was able to repeat the problem only on my laptop in some special
cases, so I do not know how common it was.  Ironically, killing
the file server process violently instead of unmount() didn't have
this problem because it never entered the unmount path from two
directions.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 16 13:03:26 2007 UTC (7 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

Give the file server the ability to specify the file handle length
instead of defining a static length file handle on the framework-level.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:46 2007 UTC (7 years, 6 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.24.2.2: +33 -42 lines
Diff to previous 1.24.2.2 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 13 13:31:11 2007 UTC (7 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

* add fhlen to kernel argument structure
* rename it to puffs_kargs instead of puffs_args

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:36 2007 UTC (7 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.25: +52 -39 lines
Diff to previous 1.25 (colored)

Sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 4 16:13:51 2007 UTC (7 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Make it possible to interrupt waiters for fs operation completion
again.  This is useful until locking is further developed and basically
any deadlocks can be solved by killing appropriate processes.

Thanks especially to Tommi Kyntola and Antti Louko for sitting down
with me and discussing resource ownership and locking strategies
in implementing this.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Mar 30 17:48:59 2007 UTC (7 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.28: +11 -9 lines
Diff to previous 1.28 (colored)

* abstract ASYNCBIOREAD and let callers freely issue a callback called
  from putop.  even though there's only one user currently, makes code
  more readable
* move "delta" to a standard parameter in vntouser and get rid of the
  specialcase vntouser_delta

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Thu Mar 29 19:27:55 2007 UTC (7 years, 6 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.26: +43 -38 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pullup to -current

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 29 16:04:26 2007 UTC (7 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.27: +23 -34 lines
Diff to previous 1.27 (colored)

Convert spinlocks & sleep/wakeup to newlock2 locking stuff.  Fix a
bunch of bugs.

* park structures are now always allocated from a pool instead of a
  mixed stack/malloc allocation
* get rid of the whole adjbuf concept, always just alloc the maximal
  amount of memory to satisfy a request
* little regression: don't allow interrupting wait from file system
  to userspace; this had problems already before, but now the problems
  really started to shine through.  I'll try to make this work again
  some day.
* fix bmap to return a sensible value in runp

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:58 2007 UTC (7 years, 6 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.24.2.1: +28 -6 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored)

sync with head.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 20 10:21:59 2007 UTC (7 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.26: +21 -5 lines
Diff to previous 1.26 (colored)

* rework the page cache interaction a bit: cache metadata in the
  kernel and flush it out all at once instead of continuous updating
* add support for delivering notifications to the file server about
  when a page was written to (but disabled by default for now).  the
  file server can use this to request flushing or invalidating the
  kernel page cache

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 14 12:13:58 2007 UTC (7 years, 7 months ago) by pooka
Branch: MAIN
Branch point for: reinoud-bufcleanup
Changes since 1.25: +8 -2 lines
Diff to previous 1.25 (colored)

Support B_READ|B_ASYNC in strategy by calling biodone() directly
when the file server puts the result.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:12 2007 UTC (7 years, 7 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.24: +14 -5 lines
Diff to previous 1.24 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 27 23:43:23 2007 UTC (7 years, 7 months ago) by pooka
Branch: MAIN
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.24: +14 -5 lines
Diff to previous 1.24 (colored)

Make wait for the user file server PCATCHable.  This makes it
possible to recover the system by just killing processes in case
a file server manages to recurse into itself either by fault of
file server implementation or by pilot error.  The downside is that
the code is extremely hard to follow and practically screams out
for newlock2 (in addition to screaming "bug here").  The whole
PCATCH nonsense and induced megacomplexity can hopefully be avoided
in the future by tweaking other parts of the implementation.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:57 2007 UTC (7 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.2: +23 -9 lines
Diff to previous 1.16.2.2 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 15 12:14:34 2007 UTC (7 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.23: +7 -1 lines
Diff to previous 1.23 (colored)

Hide the debug prints behind PUFFSDEBUG instead of DEBUG.  Make the
latter define the former.

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:33 2007 UTC (7 years, 8 months ago) by ad
Branch: newlock2
Changes since 1.9.2.3: +14 -7 lines
Diff to previous 1.9.2.3 (colored) next main 1.10 (colored)

Sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 29 01:52:44 2007 UTC (7 years, 8 months ago) by hubertf
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 26 22:59:49 2007 UTC (7 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.21: +5 -2 lines
Diff to previous 1.21 (colored)

Initial attempt at suspend/snapshot support for userspace file
servers.  This is still pretty much on the level "if it breaks ...".
It should work for single-threaded servers which handle one operation
from start to finish in one go.  Also, it does not yet totally
correctly synchronize metadata and data in some cases.  So needless
to say, it needs improvement, but it is possible that will have to
wait for some lock revampage.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 21 16:29:31 2007 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

optimize a bit: don't flush pages for vnodes which have no references
in the kernel or links in the backend

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 15 23:29:08 2007 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.19: +6 -5 lines
Diff to previous 1.19 (colored)

Store puffs_node's on lists hashed with the cookie value instead
of just one flat list.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 15 20:40:29 2007 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

* do not accept the directory cookie as the result of a lookup (otherwise
  we'd be locking against ourselves)
* do not accept duplicate cookies when creating new nodes

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:05 2007 UTC (7 years, 9 months ago) by ad
Branch: newlock2
Changes since 1.9.2.2: +34 -19 lines
Diff to previous 1.9.2.2 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 9 18:14:31 2007 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.17: +4 -5 lines
Diff to previous 1.17 (colored)

Introduce flush operations, which the fs server can use to control
kernel caching.  Currently supported are only flushing the name
cache for a directory or flushing the name cache for the entire fs.

Also, get rid of PNODE_INACTIVE status, since it was racy and
essentially didn't work.  All this on top of being useless in the
first place ....

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 2 15:51:22 2007 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

* check userspace version and prevent incompatible mount
* some general maintenance

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:01 2006 UTC (7 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.2.1: +206 -0 lines
Diff to previous 1.16.2.1 (colored)

sync with head.

Revision 1.16.2.1, Sat Dec 30 01:29:03 2006 UTC (7 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16: +0 -206 lines
FILE REMOVED

file puffs_sys.h was added on branch yamt-lazymbuf on 2006-12-30 20:50:01 +0000

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 30 01:29:03 2006 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

* use PUFFS_KFLAG_NOCACHE to also signal that we don't want the namecache
* enter files into the namecache immediately when new nodes are created
  (if it's a caching mount, of course)

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 29 15:38:37 2006 UTC (7 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

rename the kernel-provided componentname to puffs_kcn; libpuffs now
provides puffs_cn built on top of it

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:15 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.13.2.2: +3 -2 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 10 22:33:31 2006 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Fix a race condition that would cause the mountpoint to be cleaned
from under someone waiting for the fs server response in puffs_unmount()
if the descriptor was closed during the response wait (such as bug
leading to a crash in fs implementation unmount()).

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:38 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.13.2.1: +203 -0 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

sync with head.

Revision 1.13.2.1, Tue Dec 5 23:41:24 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.13: +0 -203 lines
FILE REMOVED

file puffs_sys.h was added on branch yamt-splraiseipl on 2006-12-10 07:18:38 +0000

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 5 23:41:24 2006 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-splraiseipl-base3
Branch point for: yamt-splraiseipl
Changes since 1.12: +5 -1 lines
Diff to previous 1.12 (colored)

shuffle functions around a bit: move the transport (/dev/puffs) to
a different file from the messaging (request contents).  no functional
change

Revision 1.12 / (download) - annotate - [select for diffs], Tue Dec 5 23:03:28 2006 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.11: +11 -13 lines
Diff to previous 1.11 (colored)

Allow multiple requests to be transferred in each GET/PUTOP.  For
a single request, the performance is still the same.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 1 12:48:31 2006 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

prefix kernel flags with PUFFS_KFLAG to have a separate namespace
from the library flags

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 1 12:37:41 2006 UTC (7 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.9: +8 -2 lines
Diff to previous 1.9 (colored)

don't call the fs server for all operations, only those it has told
us that it implements

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:20 2006 UTC (7 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.9.2.1: +192 -0 lines
Diff to previous 1.9.2.1 (colored)

Sync with head.

Revision 1.9.2.1, Sat Nov 18 08:18:24 2006 UTC (7 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.9: +0 -195 lines
FILE REMOVED

file puffs_sys.h was added on branch newlock2 on 2006-11-18 21:39:20 +0000

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 18 08:18:24 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Branch point for: newlock2
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

As a first generation best-effort hack, use NOCACHE to mean "file
size can change without the kernel knowing" and therefore query
the file size before invoking read or write operations.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 17 17:48:02 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Introduce uncached operation, makes sense when the file system backend
can be modified from elsewhere than the file system interface

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 9 13:09:34 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

few renames to better differentiate between mount & start.. plus some
other renaming

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 7 22:10:18 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.5: +15 -5 lines
Diff to previous 1.5 (colored)

attach to genfs & support page cache.  most noticeable effect is
mmap and therefore execution of binaries starting to work, some
speed improvements with large file I/O also.  caching semantics
and error case handling most likely need revisiting.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 6 23:18:18 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.4: +8 -2 lines
Diff to previous 1.4 (colored)

puffs_park always contains a specific puffs_req, so make it a member
instead of a pointer

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 6 11:44:54 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

make it possible to build & load puffs as an LKM

by Lubomir Kundrak, PR kern/35000

Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 27 12:25:16 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

support fifos

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 26 22:52:47 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.1: +10 -3 lines
Diff to previous 1.1 (colored)

support specfs

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 22 22:43:23 2006 UTC (7 years, 11 months ago) by pooka
Branch: MAIN

kernel portion of puffs - the Pass-to-Userspace Framework File System.
It contains the VFS attachment and userspace message-passing interface.

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks.  While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace.  Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.

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>