]> git.neil.brown.name Git - history.git/commit
[PATCH] Make sure sunrpc/cache doesn't confuse writers with readers.
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 5 Aug 2003 06:19:20 +0000 (23:19 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 5 Aug 2003 06:19:20 +0000 (23:19 -0700)
commit6ed499a91b0c3288c060e431f6838ff85148c59e
tree75292bcfa559e493a63696a13fa00ffc7767b321
parent1f494fc0b5e1969bdf4d56dc032bd5064cf6ed57
[PATCH] Make sure sunrpc/cache doesn't confuse writers with readers.

When a sunrpc/cache channel is not open for reading, the
cache doesn't bother making and waiting for up-calls.

However it doesn't currently distingish between open-for-read/write
and open-for-write, so an op-for-write will look like a reader
and will cause inappropriate waiting.

This patch checks if a file is open-for-read and will only register
a file as a reader if it really is one.
net/sunrpc/cache.c