Files
linux/net
Trond Myklebust da77005f0d 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 <Trond.Myklebust@netapp.com>
2009-08-09 15:14:28 -04:00
..
2009-05-25 01:53:53 -07:00
2009-07-12 12:22:34 -07:00
2009-08-03 13:24:39 -07:00
2009-01-04 17:29:21 -08:00
2009-05-25 01:53:53 -07:00
2009-07-12 12:22:34 -07:00
2009-07-29 14:52:01 -04:00
2009-07-26 19:11:14 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00