From: Miao Xie Date: Thu, 6 Mar 2014 05:55:03 +0000 (+0800) Subject: Btrfs: fix possible empty list access when flushing the delalloc inodes X-Git-Tag: v3.15-rc1~96^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=573bfb72f7608eb7097d2dd036a714a6ab20cffe;p=pandora-kernel.git Btrfs: fix possible empty list access when flushing the delalloc inodes We didn't have a lock to protect the access to the delalloc inodes list, that is we might access a empty delalloc inodes list if someone start flushing delalloc inodes because the delalloc inodes were moved into a other list temporarily. Fix it by wrapping the access with a lock. Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed