2914 Commits

Author SHA1 Message Date
Jeffrey Altman
70921404ca STABLE14-windows-syncop-waiting-20050605
Forgot to remove unneeded flag


(cherry picked from commit be6ccec728bf2cad77f5aad83a706a281baaf9d0)
2005-06-05 14:39:29 +00:00
Jeffrey Altman
bb562cedfb STABLE14-windows-buf-waiting-20050605
The function cm_SyncOp() can cause threads to wait either because there
is a state conflict on the current use of the cm_scache_t object or
a state conflict on the cm_buf_t object.  Waiting is always performed
on the cm_scache_t object.  However, if the conflict was with the cm_buf_t
object there was no method for waking up the thread when the conflict is
cleared.  Now all of the cm_buf_t waiting functions also take a cm_scache_t
and waiting threads are woken if necessary.

cm_scache_t and cm_buf_t objects now have waitCount and waitRequest fields.
The WAITING flag is now cleared by the waking thread who sets waitCount to
zero.

Many improvements to trace logging for these issues.


(cherry picked from commit dfd34687f29ea2c20c5c0438ab4dba11e077f889)
2005-06-05 07:45:31 +00:00
Chas Williams
6730941098 STABLE14-solaris10-optimization-20050602
FIXES 17262

declare certain things volatile to make solaris compiler less cranky


(cherry picked from commit 23cbd8f646dac8dbe3d5615e8a59e1170a281f07)
2005-06-02 06:21:57 +00:00
Tracy Di Marco White
f4db9e0667 STABLE14-netbsd-fileserver-shutdown-20050601
FIXES 16897

do what we do on darwin


(cherry picked from commit ab0f8ed43b863aeccbb98c8beae545cfeb40ee36)
2005-06-02 05:41:30 +00:00
Tracy Di Marco White
f2fe2ca70d STABLE14-netbsd-399-20050601
FIXES 18288

add support for netbsd 3.99


(cherry picked from commit 9e110558c26b1f3b4c3f96fa9c4b3c1cb9e60dd7)
2005-06-02 05:28:10 +00:00
Chas Williams
9814c83165 STABLE14-d-reval-one-more-20050531
last try
2005-05-31 22:12:51 +00:00
Chas Williams
fed6818641 STABLE14-d-reval-one-more-20050531
last try
openafs-devel-1_3_83
2005-05-31 22:12:51 +00:00
Jeffrey Altman
e584b7b287 STABLE14-windows-undo-20050531
undo last change


(cherry picked from commit fa00cacf48e66c275604d616112e0b74932ace44)
2005-05-31 21:34:26 +00:00
Jeffrey Altman
23eeafd5fd STABLE14-windows-more-races-20050531
a couple of more locations at which cm_SyncOpDone() either was not
called or was called without holding the scache mutex.


(cherry picked from commit 528c511aabaefcafc01361c8038766ce56fe8e45)
2005-05-31 18:36:57 +00:00
Derrick Brashear
3a6b11285d STABLE14-openafs-1-3-83-20050531
make 1.3.83
2005-05-31 15:49:19 +00:00
Jeffrey Altman
1522febaea STABLE14-windows-logon-cleanup-20050531
remove debugging messages


(cherry picked from commit e844445243f837f9bc2fc52b503af99ecd44427e)
2005-05-31 15:19:06 +00:00
Jeffrey Altman
237ff453de STABLE14-windows-des-stats-20050531
Put the declaration for rxkad_stats back into the stats.h but only
for Windows.   We don't want to deal with figuring out all the
dependencies today.


(cherry picked from commit 4c143cf63df724637d765b8ade88a9f5aa97107e)
2005-05-31 14:26:01 +00:00
Derrick Brashear
f450d8456d STABLE14-rx-queue-macros-rename-20050530
/usr/include/ctype.h on macos 10.3.9 now uses _Q

bah


(cherry picked from commit d9f9724c9562f8ae0115394454dd2dd96ac258ff)
2005-05-31 03:12:25 +00:00
Derrick Brashear
8ee42e8dba STABLE14-rxkad-stats-cleanup-20050530
minor reorg so everything links ok


(cherry picked from commit c87ae4f82cacacef68a2b54ad21e17ac6d5ddfae)
2005-05-30 19:30:36 +00:00
Jeffrey Altman
f4470ef33b STABLE14-not-cplusplus-20050530
variables must be declared at the start of a block.


(cherry picked from commit 5343ad18e33b97e808fdf377bbdb2c76bb63da0d)
2005-05-30 11:50:04 +00:00
Jeffrey Altman
ad711e94c8 STABLE14-windows-double-declare-20050530
rxkad_global_stats is being declared twice in the header file each
time with different properties.  Remove the one that is not
conditionalized.


(cherry picked from commit ad4634fca26d92c9496dbbd70e7c970c1f84a5ad)
2005-05-30 11:48:07 +00:00
Jeffrey Altman
2e4ec0acb1 STABLE14-windows-include-des-20050529
Create an include/des directory and copy stats.h into it


(cherry picked from commit e5d21400b799c34af8ed63cf5dba2ee95c83cd87)
2005-05-30 06:41:30 +00:00
Derrick Brashear
784bccfa89 STABLE14-merge-cleanup-20050529
minor dinking from unclean merge.
2005-05-30 06:28:19 +00:00
Tom Keiser
8886b07c79 STABLE14-parallel-attaching-20050529
FIXES 18999

allow parallelization of VInitVolumePackage so attaching volumes can be sped up


(cherry picked from commit b9ae6e9547471c4006e4ac00879b3cb9bcefe47b)
2005-05-30 06:23:30 +00:00
Tom Keiser
b7ec978332 STABLE14-pthread-rxkad-stats-20050529
FIXES 17547

speed up rxkad by keeping stats per-thread


(cherry picked from commit 25b0681893b3c41cfeba213f9a6b7bfd0d85c685)
2005-05-30 05:57:34 +00:00
Chas Williams
181a4c6b97 STABLE14-memcache-dont-dump-buffer-20050529
FIXES 18944

don't bother dumping what may not be a readable buffer while tracing when using memcache


(cherry picked from commit b56513ffd69bbcd94afb2b1e1509aae63fa438fc)
2005-05-30 05:36:58 +00:00
Chaskiel M Grundman
86576b4e0b STABLE14-linux-vnode-aliases-20050529
FIXES 18613

you can end up hanging when you end up with multiple aliases for a single directory (dentry) as a result of @sys or multiple mountpoints.

don't end up with multiple aliases, and avoid the situation


(cherry picked from commit 2995362346abd9691bc8d4ceca57247e1954fb1d)
2005-05-30 05:33:57 +00:00
Peter Somogyi
74e71f8f42 STABLE14-s390x-linux26-remove-externs-20050529
FIXES 18987

remove externs in param for s390x linux26


(cherry picked from commit 44350283a2fc3c18954169f42edda14063e86535)
2005-05-30 05:23:39 +00:00
Jeffrey Altman
e188ff4d99 STABLE14-windows-notes-20050529
Update notes for 1.3.8300


(cherry picked from commit c915a6bce730fca994aef77b8a3224a3f126bae7)
2005-05-30 05:13:42 +00:00
Chas Williams
29897ad340 STABLE14-d-reval-fin-20050529
FIXES 18588

last try at fixing d-revalidate


(cherry picked from commit c7db062bea6e57242554a3eb8aa32ac0271c45ae)
2005-05-30 05:12:17 +00:00
Derrick Brashear
c67d72a692 STABLE14-module-license-url-20050529
FIXES 18596

url with module license info


(cherry picked from commit c640e271d893ac8275b3ee50b04f8775dca384b5)
2005-05-30 05:08:25 +00:00
Chas Williams
b0ee8379e0 STABLE14-vcache-cleanup-20050529
FIXES 18368

clean up unused stuff in struct vcache


(cherry picked from commit ec84a819de10eac9ede8e2499b35d61bb4840744)
2005-05-30 05:05:40 +00:00
Jeffrey Altman
eb272638c5 STABLE14-windows-stuff-20050529
(1) Replace all calls to getenv() with GetEnvironment().  getenv() does
not read from the real environment but instead from a copy created by
the C RTL.

(2) Add support for preserving Kerberos 5 tickets during the Integrated
Logon process.   Now when Integrated Logon is used, the tickets will
be stored into the default ccache within the user session.

(3) Stress testing at MIT uncovered two code paths that could leave
threads in a permanent sleep state under heavy load.   Calls to
cm_SyncOpDone were added to plug this hole.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

Install afscpcc.exe and register the KFWLogon WinLogon Event Handler


(cherry picked from commit 96472a6b3a71d5d5ef57e2481680920a7e006ffe)
2005-05-30 04:58:34 +00:00
Tom Keiser
5b9b076796 STABLE14-rx-fpq-bulk-free-20050529
FIXES 19027

After profiling RX for a while, I've found a few more bottlenecks in the
packet handling code.  This patch addresses a couple of these issues.
The major change in this patch is a new API to allow bulk packet
alloc/free ops on rx_queue's of packets.  Benefits include reduced lock
contention on rx_freePktQ_lock, elimination of a lot of unnecessary cache
line invalidates, and reduced register window thrashing on sparc.

In addition, this patch dedicates one rx_packet per thread to rxi_SendAck,
since that function is in the critical path, and represents a large
percentage of execution time.


(cherry picked from commit d049ca2ae4e7708df028fca739c2a35ccb906bfb)
2005-05-30 04:41:45 +00:00
Tracy Di Marco White
671d4911a2 STABLE14-netbsd-pam-20050529
FIXES 18924

pam support for nbsd


(cherry picked from commit 985171769d01bfa8cd583e75c08d13949ac201fc)
2005-05-30 04:37:48 +00:00
Roman Mitz
b6529a3819 STABLE14-discard-rx-streams-20050524
FIXES 18895

they wouldn't compile anyway. remove references also.

RCS file: /cvs/openafs/src/rx/Attic/rx_stream.c,v
Working file: src/rx/rx_stream.c
head: 1.9
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 9;	selected revisions: 0
description:

RCS file: /cvs/openafs/src/rx/Attic/rx_stream.h,v
Working file: src/rx/rx_stream.h
head: 1.6
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 6;	selected revisions: 0
description:


(cherry picked from commit b15721aef16f9b8b689bfc0be01a434f88610919)
2005-05-25 00:14:44 +00:00
Klas Lindfors
0efab4c9b8 STABLE14-make-clearcallback-faster-20050524
FIXES 4413

hash callbacks twice so we can discard them more quickly.


(cherry picked from commit 57150405dac2e8ba5b815e880107dda7c48cbd58)
2005-05-25 00:09:13 +00:00
Asanka Herath
de570a759b STABLE14-windows-loopback-20050524
Find the loopback adapter installer by hardware ID instead of English name.


(cherry picked from commit 280e10315e00d9f3545bb5176f08c58512385571)
2005-05-24 06:13:06 +00:00
Jim Rees
1614af259c STABLE14-freebsd60-mount-20050429
Fix new FreeBSD mount vfs op.
Client works now, at least for a little while.


(cherry picked from commit 35c9cef27e3f60588b5b15e3795d9475ed377e32)
2005-05-23 22:26:40 +00:00
Jim Rees
7b3894acfb STABLE14-freebsd-20050429
Move module init/uninit code from module event handler to vfs ops
Use VFS_SET for FreeBSD 6.0


(cherry picked from commit 36957dd203ddb45d993e1ea9ad1ffaeccc3b9390)
2005-05-23 22:23:53 +00:00
Jim Rees
33a5b2716d STABLE14-freebsd60-readme-20050515
Add FreeBSD 6.0.
Consolidate linux kernel header notes in Linux Notes section.
Reformat system types section.


(cherry picked from commit 015c5356d9910688c497f860f70ed277e263239b)
2005-05-23 22:21:12 +00:00
Jim Rees
470b060085 STABLE14-bsd-config-20050520
config stuff for OpenBSD 3.7, FreeBSD 5.4 and 6.0


(cherry picked from commit 4e6733a0520bc0221bdda085ffa83bd23463a599)
2005-05-23 22:17:40 +00:00
Jim Rees
d53f1d0826 STABLE14-obsd-time-20050520
Remove extern time from OBSD/osi_machdep.h. It's in sys/kernel.h.
Suggested by irene.braun@ualberta.ca.


(cherry picked from commit c20d9c0eabb6f6186f21e2f5bd7e125c9a9aee37)
2005-05-23 22:17:29 +00:00
Christopher Allen Wing
a08fd215db STABLE14-linux-proc-read-seq-file-20050508
FIXES 18612

use sequenced file interface for proc copy of CellServDB


(cherry picked from commit ccdab705071cf7ab1a508b06bf09b472806a8b1f)
2005-05-23 22:17:18 +00:00
Marc Horowitz
4a5e98945a STABLE14-sparc64-linux26-20050508
FIXES 18485

add sparc64-linux24 port


(cherry picked from commit 2669e1103bc733df4e27e24438c72d7d39a4c476)
2005-05-23 22:16:08 +00:00
Chas Williams
9904add87f STABLE14-d-revalidate-redux-20050508
FIXES 18588

when the callback for a directory is broken the children of this vnode
are not invalidated as well. so VerifyVCache() always believes these
vnodes to be up to date since they will still have the CStatd flag.

perhaps breaking the callback on a directory should also clear CStatd
on children vnodes?

this isnt a problem for other operating system which go through the
dnlc which does purge the children entries for the vnode in question
during ClearCallBack().

since d_revalidate now avoids the dnlc (and afs_lookup) the following
patch tracks the parent vnode's DataVersion (just the lower half really
but this should be sufficient) in d_time. if the parent has changed
then the dentry is flagged as neededing updated.


(cherry picked from commit f6883dfbbcbe14f65c2b9e44f2841392050e755f)
2005-05-23 22:09:45 +00:00
Jim Rees
89684df56b STABLE14-getpid-20050429
rename our getpid() to osi_getpid() to avoid name collision with kernel version


(cherry picked from commit ff6259a9c4122f098328c2b256093bd32f979e8f)
2005-05-23 22:09:37 +00:00
Jeffrey Altman
1275f6fcfd STABLE14-windows-notes-20050523
more fixes


(cherry picked from commit 2d130131201d78a47d097412d64c98268d481579)
2005-05-23 14:58:26 +00:00
Jeffrey Altman
4223904a09 STABLE14-windows-delonclose-20050522
Fix support for the CreateFile(DELETE_ON_CLOSE) option.


(cherry picked from commit eb7ef65dfa95bbc035a54d15b594a19c1e94335a)
2005-05-22 06:54:21 +00:00
Jeffrey Altman
809edfad29 STABLE14-windows-sync-20050518
synchronize with the 1.3 tree for the 1.3.8300 release
2005-05-18 23:57:01 +00:00
Jeffrey Altman
ddb4722c93 STABLE14-windows-afssvrmgr-20050518
Link resulting executable to kerberos 5


(cherry picked from commit 5b6865886258ea102c90dfb3af65b68d979ef936)
2005-05-18 23:22:41 +00:00
Jeffrey Altman
95c5005b38 STABLE14-rx-makecall-race-fix-20050518
On at least one system it was noticed that threads waiting in rx_NewCall
would starve forever (aka deadlock).   This was the result of one out of
two problems related to a race condition on the RX_CONN_MAKECALL_WAITING
bit flag.  This flag was set once in rx_NewCall and cleared in rx_EndCall.
However, it was possible for the flag to be cleared even though there
were additional flags waiting in rx_NewCall.  This was due to a failure
to check the value of makeCallWaiters before clearing the flag and also
due to a failure to properly lock the access to the makeCallWaiters field.

The second problem was an ability to destroy a connection on which threads
are waiting within rx_NewCall.


(cherry picked from commit 10f6e5d6e2960469eb4d0e75f62fa9b33629b132)
2005-05-18 23:03:02 +00:00
Klas Lindfors
636114bff2 STABLE14-export-calleraccess-via-pioctl-20050508
FIXES 18442

provide pioctl to get CallerAccess bits


(cherry picked from commit 5afb5d6246d34948d15e93d1af9c2370d26c9f3a)
2005-05-08 07:18:09 +00:00
Chaskiel M Grundman
58922fe50f STABLE14-volinfo-fixes-20050508
FIXES 18391

large (>31bit) volume id handling and fixed handling of cloned volumes


(cherry picked from commit f519e0457caaff9be2926518efffac586202e266)
2005-05-08 07:10:26 +00:00
Tom Keiser
578962b397 STABLE14-fix-64bit-assign-int64-20050508
FIXES 18611

make this match the way the 32 bit (struct lo/hi) version works


(cherry picked from commit c1315b3b63b2ca2a1b95c63ede59d25bb9f6fe93)
2005-05-08 07:01:12 +00:00