From: zab Date: Sat, 26 Jul 2003 01:38:11 +0000 (+0000) Subject: - add the /proc tunables to control the number of pages per rpc and the X-Git-Tag: v1_7_0_51~2^14~21 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=13d093be89bf83cf39333210cf54e9d62a9fa4f2;p=fs%2Flustre-release.git - add the /proc tunables to control the number of pages per rpc and the number of concurrent rpcs - make sure to check to fire new rpcs as an rpc completes - push the rpc concurrency checks into the right place - rearrange the rpc firing logic so it doesn't get stuck :/ --- diff --git a/lustre/osc/osc_internal.h b/lustre/osc/osc_internal.h index c064f88..58c3d4c 100644 --- a/lustre/osc/osc_internal.h +++ b/lustre/osc/osc_internal.h @@ -15,4 +15,15 @@ int osc_rpcd_addref(void); int osc_rpcd_decref(void); void osc_rpcd_add_req(struct ptlrpc_request *req); +int osc_read_tunable(char *page, char **start, off_t off, int count, + int *eof, void *data, atomic_t *tunable); + +int osc_write_tunable(struct file *file, const char *buffer, + unsigned long count, void *data, + atomic_t *tunable, unsigned int max); + +/* osc/lproc_osc.c */ +extern atomic_t osc_max_pages_per_rpc; +extern atomic_t osc_max_rpcs_in_flight; + #endif /* OSC_INTERNAL_H */