]> git.neil.brown.name Git - LaFS.git/commit
Avoid deadlock between orphan-truncate and cluster-write
authorNeilBrown <neilb@suse.de>
Thu, 10 Jun 2010 05:52:45 +0000 (15:52 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 13 Jun 2010 07:19:59 +0000 (17:19 +1000)
commitfc0adb2d8351fd9c0e79bf8cf4e96116e7b7d6ca
treeb1147d9a882d6a0b56fdb6649f491166ba3036d3
parent49164b44d42baba041450adf691ec948dc38ca9c
Avoid deadlock between orphan-truncate and cluster-write

If, during truncate, we find an index block in writeback,
we need to give up on the orphan and return back up
to the cleaner thread so that the writeback can be
properly handled.
Otherwise the cleaner thread is blocked waiting for the cleaner thread
to make progress.

Signed-off-by: NeilBrown <neilb@suse.de>
inode.c