Whamcloud - gitweb
LU-1028 osc: fix grant checking on the osc side
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Sat, 28 Jan 2012 22:43:47 +0000 (14:43 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Feb 2012 05:19:17 +0000 (00:19 -0500)
commit0204171fd3e1b393c53bd374aff228e80080a55a
treeefdffc9111354af359986bcf00a078863ac2ee70
parent0a79b541ad736bb296ea051e58b667c6195731a1
LU-1028 osc: fix grant checking on the osc side

If there is no available grant on the client side, but exists dirty
pages, we should issue BRW rpc and wait for more grants.

Another changes is about lost_grant: if dirty pages were truncated,
grants will be returned to client, instead of the target having
allocated them.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I50791554807dddfafafcd2b8d228958ebfa3ac16
Reviewed-on: http://review.whamcloud.com/2037
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_request.c