commit | 43703472e76dfa72d21c3ccb9fb577178393532b | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Thu Mar 06 13:55:03 2014 +0800 |
committer | Josef Bacik <jbacik@fb.com> | Fri Mar 07 13:06:24 2014 -0500 |
tree | 757a1d28365a1f3ed829f57c6bb6499a7de92538 | |
parent | da23c1371881332f42dab54da3d0c96ad9bd1011 [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>