Whamcloud - gitweb
LU-456 Force commit to reuse the just-deleted blocks
authorNiu Yawei <niu@whamcloud.com>
Fri, 1 Jul 2011 04:49:04 +0000 (21:49 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Fri, 15 Jul 2011 06:14:31 +0000 (23:14 -0700)
commitbd29c2d95562591b0c063defc31c3cf70ea5a33b
treec6e3bc27fb2118c222139db1e41dc1a399e8410b
parente69dc73bb416a7b0ea79b58b06d84921994963db
LU-456 Force commit to reuse the just-deleted blocks

In ext4 non-writeback journal mode, the just-deleted blocks are not
useable until the transaction committed, this could cause filter
return -ENOSPC mistakenly when the just-deleted blocks are not committed.

Whenever block allocation fails for -ENOSPC on filter, we should wait
for the previous deleted blocks committed, then retry the allocation.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I50878d4459377d68a9c67575f137a3a44cb3625e
Reviewed-on: http://review.whamcloud.com/1039
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/include/obd_support.h
lustre/obdfilter/filter_io_26.c
lustre/tests/sanity.sh