From: Arne Jansen Date: Thu, 9 Aug 2012 06:16:53 +0000 (-0600) Subject: Btrfs: fix race in run_clustered_refs X-Git-Tag: v3.6-rc4~6^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22cd2e7de7b0bd68fb668d23e1564707ca689510;p=pandora-kernel.git Btrfs: fix race in run_clustered_refs With commit commit d1270cd91f308c9d22b2804720c36ccd32dbc35e Author: Arne Jansen Date: Tue Sep 13 15:16:43 2011 +0200 Btrfs: put back delayed refs that are too new I added a window where the delayed_ref's head->ref_mod code can diverge from the sum of the remaining refs, because we release the head->mutex in the middle. This leads to btrfs_lookup_extent_info returning wrong numbers. This patch fixes this by adjusting the head's ref_mod with each delayed ref we run. Signed-off-by: Arne Jansen Signed-off-by: Chris Mason --- Reading git-diff-tree failed