]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE10-honor-solaris-attr-hint-20010112
authorNickolai Zeldovich <kolya@mit.edu>
Fri, 19 Jan 2001 09:46:06 +0000 (09:46 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 19 Jan 2001 09:46:06 +0000 (09:46 +0000)
commit035c5d297bfb228c97757e418bddf19e93a19dea
tree0ccd17f69699279cd7cd1b4f4a4911673e3ac293
parent670fe1ace80f6d5504f59ee877bd5e518d312b74
STABLE10-honor-solaris-attr-hint-20010112

"The problem that it fixes is as follows: suppose user A's process maps
something into its address space out of AFS. Now if user B runs "ps",
or otherwise reads /proc/NNN/status, the kernel code will lock the
associated entry in /proc and then proceed to find the size of the
address space for that process; in doing so, it calls getattr(). If B
does not have tokens to access the file, the fileserver will eventually
start delaying responses to FetchStatus requests, and the kernel will
block with /proc locked.

The user-visible effect is that "ps", "w" and so on start blocking
uninterruptibly for long periods of time."

(cherry picked from commit 22293eeada64329250864b4f46dfce3ca857f674)
src/afs/VNOPS/afs_vnop_attrs.c