Whamcloud - gitweb
b=20278 ASSERTION(cli->cl_avail_grant >= 0) failed
authorCliff White <cliff.white@sun.com>
Fri, 26 Mar 2010 05:42:51 +0000 (22:42 -0700)
committerJohann Lombardi <johann@sun.com>
Tue, 6 Apr 2010 08:41:03 +0000 (10:41 +0200)
commitc35cc39503dcf8dd105d10f923df9e3a3369e15b
tree6a649dcd7a6aee51c6fbc00b633b7acc8d39290c
parent8e4e41abfa4f18d371fda21bd94efa82c15da41f
b=20278 ASSERTION(cli->cl_avail_grant >= 0) failed

i=tom.wang
i=robert.read

This patch tries to address several issues:
- osc_init_grant(): calculate avail_grant according to recovery status.
- osc_reconnect(): request grant should include cl_dirty.
- filter_grant(): beside server reboot, we should also grant the requested
  amount in case of normal reconnect.
- round-up grant amount instead of round-down, otherwise client would still
  have situation that dirty > granted.
lustre/obdfilter/filter.c
lustre/obdfilter/filter_internal.h
lustre/obdfilter/filter_io.c
lustre/osc/osc_request.c