summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_socket.c
AgeCommit message (Collapse)Author
2005-04-02use pool for struct nfsreq; tedu@ pedro@ ok and testing by mark patruck ↵Michael Shalayeff
<mark@2ls4agd.net> on several archs
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-10In nfs_connect() move the setting of so->so_rcv.sb_timeo out of theTodd C. Miller
if () else since it is common to both cases and makes the code clearer. OK pedro@
2004-07-14on nfs_reconnect(), don't reset the rexmit of all nfs reqs, but onlyPedro Martelletto
of those belonging to the given nfs mount. ok marius@, tedu@
2004-07-10fix for where a TCP NFS connection could sleep in soreceive() forever,marius eriksen
this fixes some problems people have experienced with NFS mounts freezing on NFS server reboot/crash. ok deraadt@ pedro@ tholo@
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
2003-12-08nfs_reqq is operated at softnet other places and thus softclock is not high ↵Michael Shalayeff
enough; tedu@ ok
2003-07-10unlock on error condition. from Tim Wiess. ok csapuntz@ millert@Ted Unangst
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-29Get rid of some commons.Artur Grabowski
2002-08-01Fix handling of 0-length RPC fragmentsConstantine Sapuntzakis
2002-07-30Bug/type found by teduConstantine Sapuntzakis
2002-07-03Remove unused function parameter 'cache' from nfs_repheadNathan Binkert
ok costa@
2002-06-11Remove some unused code for dealing with nfs over kerberos. No actual change,Hans Insulander
just some #ifdef'ed out code removed. ok deraadt@, art@ and csapuntz@
2002-05-17Fix nfs_realign to allocate new mbufs. Taken from freebsdConstantine Sapuntzakis
2002-04-11Back out nfs_realign() change, it causes "pool_get: must have NOWAIT" panics.Todd C. Miller
deraadt@ OK
2002-04-10nfs_realign from FreeBSD. The old code was over-optimized, occasionally ↵Constantine Sapuntzakis
overwriting other parts of a TCP stream, occasionally dereferencing NULL pointers
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-16use queue.h macro'sEric Jackson
remove register
2001-06-25Remove NQNFSConstantine Sapuntzakis
2001-05-20tdbi->tags cleanupsAngelos D. Keromytis
2001-03-28Allow tdbi's to appear in mbufs throughout the stack; this allowsAngelos D. Keromytis
security properties of the packets to be pushed up to the application (not done yet). Eventually, this will be turned into a packet attributes framework. Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS) does weird things with mbufs.
2000-08-10unfortunately, i must undo this patch, since it causes client hangs on sparc ↵Theo de Raadt
machines, and only on them. until more is known, out this comes
2000-08-07fix obvious error, spotted by ericjTheo de Raadt
2000-06-26Convert nfs_timer to new timeouts.Artur Grabowski
2000-01-04fix mbuf out-of-bound writes on nfsv2 mounts.Jun-ichiro itojun Hagino
netbsd sys/nfs/nfs_socket.c 1.43 -> 1.44
1999-03-02When an NFS3 server replies with NFS3ERR_JUKEBOX, currently, itTodd C. Miller
panics the kernel, because the kernel tries to reuse a freed mbuf; dm@reeducation-labor.lcs.mit.edu
1999-02-06Use bitwise operations to extract high and low words from the quadTodd C. Miller
in txdr_hyper. This should be more portable than casting to an array of ints and pulling out the two 32-bit words (this produced incorrect results on alpha for the high word for filesystems < 4gig). As a side effect, txdr_hyper now takes a u_quad_t as its first arg, not u_quad_t *.
1998-08-19Change fxdr_hyper to return a u_quad_t. This minimizes the evil clobberingConstantine Sapuntzakis
of lvalues that ANSI abhors. And it fixes df on NFS version 3 mounts on Sparcs.
1997-07-28allocate random portsTheo de Raadt
1997-04-25XXX should do reserved portsTheo de Raadt
1997-04-18cleanup -WallTheo de Raadt
1997-04-18avoid possible *NULL; fvdlTheo de Raadt
1996-12-24reclaim NFSMNT_RESVPORT bit, and add more traditional attribute cache ↵dm
timeout flags
1996-07-03cannot check for < NFS_MINPACKET on some transports; from guy@netapp.comTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-17Minor cleanups. Checked against Lite2.Michael Shalayeff
(NetBSD's was really just a Lite2's, but w/ 64bit support)
1996-03-31From NetBSD: NFSv3 import (tomorrow's Net's kernel)Michael Shalayeff
Open's patches kept in. i'll possibly take a look at Lite2 soon, is there smth usefull ?..
1996-02-29From NetBSD: merge with 960217 (still NFSv2)Niklas Hallqvist
1995-12-21from cgd; handle 64-bit pointers and longsTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt