From: Jan Schmidt Date: Mon, 12 Dec 2011 15:10:07 +0000 (+0100) Subject: Btrfs: add waitqueue instead of doing busy waiting for more delayed refs X-Git-Tag: v3.3-rc1~26^2~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a168650c08300434e1456abe7b6451f1448230d3;p=pandora-kernel.git Btrfs: add waitqueue instead of doing busy waiting for more delayed refs Now that we may be holding back delayed refs for a limited period, we might end up having no runnable delayed refs. Without this commit, we'd do busy waiting in that thread until another (runnable) ref arives. Instead, we're detecting this situation and use a waitqueue, such that we only try to run more refs after a) another runnable ref was added or b) delayed refs are no longer held back Signed-off-by: Jan Schmidt --- Reading git-diff-tree failed