Age | Commit message (Collapse) | Author |
|
|
|
|
|
ok thib@
|
|
Diff from FreeBSD.
OK blambert@
|
|
ok thib@
|
|
error = foo();
if (!error)
bar();
is an alien construct; replace with one from this planet
ok thib@
|
|
ok thib@
|
|
free the mbufs the entry has (socket name, reply).
Found with dlg@'s amazing mbuf debug diff, fix is based on
the same thing in NetBSD (by yamt@netbsd.org).
OK blambert@
|
|
is good for the brain.
ok thib@
|
|
ok thib@
|
|
Thanks to ckuethe for saving much typing with a drive-by perl script.
ok thib@
|
|
code; makes the cleaned-up function much more legible.
ok thib@
|
|
things that should be defined here and remove a silly
comment.
|
|
|
|
OK blambert@
FreeBSD commit message:
Refactor the NFS over UDP retransmit timeout estimation logic to allow
the estimator to be more easily tuned and maintained.
There should be no functional change except there is now a lower limit
on the retransmit timeout to prevent the client from retransmitting
faster than the server's disks can fill requests, and an upper limit
to prevent the estimator from taking to long to retransmit during a
server outage.
|
|
just store the maximun amount of rexmits in one place and
cleanup. Also make sure this only effects soft mounts.
OK blambert@
|
|
OK blambert@ sometime ago
|
|
usefull, and has been disabled for a long long time.
Cleans house a bit.
OK blambert@
|
|
idea never really caught on anywhere so retire it.
"gank this shizzle", blambert@
|
|
|
|
In snaps for a while (way too long, according to deraadt@)
|
|
In snaps for a while.
|
|
increment the num{read,write} and pending{read,write} statistics in that
case, since biodone won't change them on completion.
On another note, I'm not sure that we use physical buffers for swapping
over nfs anymore, so this chunk may be superfluous.
beck@ came up with the same diff "So anyway rather than me commiting it
from my copy, I'm giving you the OK and the commit. since it officially
makes you a buffer cache and NFS hacker };-)"
|
|
levels. This will allow for platforms where soft interrupt levels do not
map to real hardware interrupt levels to have soft ipl values overlapping
hard ipl values without breaking spl asserts.
|
|
the receiving side when passing fd's. ok deraadt@ kettenis@
|
|
ok blambert@
|
|
pointed out by bluhm@, "obvious" thib@
|
|
(that I applied to a clean tree to commit)
|
|
timeouts. Rrids us of the ugly cur_sec variable, and some shadows.
Also helps with granularity.
Diff from blambert@ who asked me to commit this since he's away for
some days and we wanted to put this in with the timespec changes in
the nfsnode.
|
|
mtime, gives us better granularity, helps with cache consistency.
Idea lifted from NetBSD.
OK blambert@
|
|
VA_EXCLUSIVE. Handle this in NFS, also in NFS use arc4random()
for the create verifier instead of an uninitialized long and
the address of the first interface (which is likely to be lo0).
Lifted from NetBSD with small tweaks;
"looks good", miod@
OK blambert@
|
|
prompted by David <dunnoseriously _att_ gmail.com>
|
|
from David <dunnoseriously _att_ gmail.com>
ok blambert@
|
|
the udp receive space got completely filled up. Even if the next
packet from the server was a small reply, it got dropped by
udp_input(). After a second the client resent the NFS request.
Doubling rcvreserve reduces the chance of retransmits by having
enough recv space for multiple NFS replies even if there comes a
big one.
found with pedro@, ok blambert@, thib@, pedro@
|
|
of 5 cases. In the functions nfs_reconnect() and nfs_reply() put
the TAILQ_FOREACH over nfs_reqq also inside splsoftnet() protection.
found with pedro@, ok blambert@, pedro@, thib@
|
|
requires well-formed mbuf chains to work. Existing function name is now
a wrapper to this interface. Much, much more work to follow which will
build on this.
Truly change we can believe in.
ok thib@, who would have preferred this in two commits, but I'm impatient :)
testing on multiple arches (i386, arm, amd64, and sparc64 at least) by many,
thanks to all who did so
|
|
cache instead of setting n_attrstamp to 0 directly.
Lift the macro name from NetBSD.
prompted by and OK blambert@
|
|
ok thib@
|
|
to kthread_create()
ok thib@
|
|
in diagnostic kernels. The typo comes from 4.4BSD-Lite2 via NetBSD.
Found with pedro@, ok pedro@, blambert@, thib@
|
|
|
|
as for open/read/write etc, that is assume that the file
as already been opened proper, this fixes an ancient
ftruncate bug, that is if ftruncate was called on a file
with no write modes, we'd return EACCES, this breaks posixy
behavior. however, for e.g. truncate() we'll return EACCESS
as we should.
Diff from PR5880 by mickey.
I had forgotten about this PR, and the fix but niklas@ ran
into similar issues which prompted another review of this.
OK kettenis@
|
|
and to print out struct nfsreq.
"get it in so people can pound on it" blambert@
OK and information_s_ on the manpage from miod@
|
|
argument since all of the info we need is there, makes it and
the use it a tad bit nicer.
ok blambert@
|
|
|
|
ok millert@ tedu@
|
|
since they have no business being export to userland.
OK blambert@
|
|
its used only once and nuke its definition.
Stolen from blambert's bag'o'diffs.
OK blambert@.
|
|
file shares the same sane style.
|
|
another comment.
|