adding a lease-based timeout to upcalls

adding -o timeout=value (in sec) mount option to override a default
timeout value for the upcalls for non-io upcalls. Default timeout is
at least the lease_time seconds of an established mount or 20secs.

read/write upcall also take into account number of bytes for the request
and 100MB/s network speed and 100MB/s disk speed
This commit is contained in:
Olga Kornievskaia 2012-03-05 17:49:52 -05:00
parent b2f5d3c7a7
commit f71623bc02
3 changed files with 132 additions and 146 deletions

View file

@ -39,6 +39,7 @@ typedef struct __mount_upcall_args {
DWORD sec_flavor;
DWORD rsize;
DWORD wsize;
DWORD lease_time;
} mount_upcall_args;
typedef struct __open_upcall_args {