diff options
author | 2014-12-04 15:31:01 +0000 | |
---|---|---|
committer | 2014-12-10 12:22:28 -0800 | |
commit | a1e7e16ed36b9b059c5ee94e372287418e2dc7bc (patch) | |
tree | f18b60f14d1601891aed8e978b66adb617b90d06 /net/lapb/lapb_timer.c | |
parent | Merge branch 'raid56-scrub-replace' of git://github.com/miaoxie/linux-btrfs into for-linus (diff) | |
download | wireguard-linux-a1e7e16ed36b9b059c5ee94e372287418e2dc7bc.tar.xz wireguard-linux-a1e7e16ed36b9b059c5ee94e372287418e2dc7bc.zip |
Btrfs: ensure deletion from pinned_chunks list is protected
The call to remove_extent_mapping() actually deletes the extent map
from the list it's included in - fs_info->pinned_chunks - and that
list is protected by the chunk mutex. Therefore make that call
while holding the chunk mutex and remove the redundant list delete
call because it's a noop.
This fixes an overlook of the patch titled
"Btrfs: fix race between fs trimming and block group remove/allocation"
following the same obvervation from the patch titled
"Btrfs: fix unprotected deletion from pending_chunks list".
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions