From: Filipe Manana Date: Fri, 14 Mar 2014 20:55:01 +0000 (+0000) Subject: Btrfs: fix race when updating existing ref head X-Git-Tag: v3.15-rc1~96^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21543baddcdbaa49db5ac8766ae564381e7c64d9;p=pandora-kernel.git Btrfs: fix race when updating existing ref head While we update an existing ref head's extent_op, we're not holding its spinlock, so while we're updating its extent_op contents (key, flags) we can have a task running __btrfs_run_delayed_refs() that holds the ref head's lock and sets its extent_op to NULL right after the task updating the ref head just checked its extent_op was not NULL. Signed-off-by: Filipe David Borba Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed