Whamcloud - gitweb
LU-456 Force commit to reuse the just-deleted blocks
authorNiu Yawei <niu@whamcloud.com>
Mon, 27 Jun 2011 10:55:10 +0000 (03:55 -0700)
committerOleg Drokin <green@whamcloud.com>
Sun, 24 Jul 2011 19:26:56 +0000 (15:26 -0400)
commit346a17e4d8b5c291d776387ace81a5b74bc24141
tree5f5bef0875ce3d4af299c7be9e8607773e23f281
parent78bcd4ca7b31284194af8ee5a33cb6836edd6ca9
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: I678b05ae9aa1b9e9d0aa29f48279bc7daedebbb2
Reviewed-on: http://review.whamcloud.com/1022
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/obd_support.h
lustre/obdfilter/filter_io_26.c
lustre/tests/sanity.sh