commit | 573bfb72f7608eb7097d2dd036a714a6ab20cffe | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Thu Mar 06 13:55:03 2014 +0800 |
committer | Josef Bacik <jbacik@fb.com> | Mon Mar 10 15:17:29 2014 -0400 |
tree | 5434c2e82299cf22af4470fef31d3890d209a0b9 | |
parent | 31f3d255c677073f83daa1e0671bbf2157bf8edc [diff] |
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 <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fb.com>