diff options
| author | Trond Myklebust <[email protected]> | 2009-08-09 19:14:28 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2009-08-09 19:14:28 +0000 |
| commit | da77005f0d64486cd760f43d9b7cc2379262a363 (patch) | |
| tree | fa64dac28c47940dd730fff68f692fd5bbd73d78 /net/sunrpc/svcauth_unix.c | |
| parent | SUNRPC: Ensure we initialise the cache_detail before creating procfs files (diff) | |
| download | kernel-da77005f0d64486cd760f43d9b7cc2379262a363.tar.gz kernel-da77005f0d64486cd760f43d9b7cc2379262a363.zip | |
SUNRPC: Remove the global temporary write buffer in net/sunrpc/cache.c
While we do want to protect against multiple concurrent readers and writers
on each upcall/downcall pipe, we don't want to limit concurrent reading and
writing to separate caches.
This patch therefore replaces the static buffer 'write_buf', which can only
be used by one writer at a time, with use of the page cache as the
temporary buffer for downcalls. We still fall back to using the the old
global buffer if the downcall is larger than PAGE_CACHE_SIZE, since this is
apparently needed by the SPKM security context initialisation.
It then replaces the use of the global 'queue_io_mutex' with the
inode->i_mutex in cache_read() and cache_write().
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
0 files changed, 0 insertions, 0 deletions
