Whamcloud - gitweb
LU-657 obdfilter: commit pending journals if -ENOSPC
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Tue, 7 Aug 2012 00:43:11 +0000 (08:43 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 9 Aug 2012 13:39:46 +0000 (09:39 -0400)
commita9597791b658ff51474c06f419162d0a0bf03c65
treea44d1c51bc29e46ff131c0bf58307a9a160af7ad
parent9eeff6d09450e1144b6b9dc1bdbc222ac2af9d67
LU-657 obdfilter: commit pending journals if -ENOSPC

in filter_preprw_write, if there is no enough space for this
write operation, then commit the pending journals to get some
more disk space and retry it.

Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Change-Id: I46106b26443bb203eee6f01a0795b47be09170a6
Reviewed-on: http://review.whamcloud.com/3446
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdfilter/filter_io.c