Re: [PATCH 2/2] Btrfs: fix unprotected deletion from pending_chunks list

2019-01-22 Thread Alex Lyakas
Hi Filipe, Thank you for your response. I realize it was a long time, ago, but we are just now in the process of moving to stable kernel 4.14.x. Regarding the fix, I see now the relevant code in "btrfs_remove_block_group": mutex_lock(&fs_info->chunk_mutex); if (!list_empty(&em->list)) {

Re: [PATCH 2/2] Btrfs: fix unprotected deletion from pending_chunks list

2019-01-21 Thread Filipe Manana
On Mon, Jan 21, 2019 at 7:07 PM Alex Lyakas wrote: > > Hi Filipe, > > On Tue, Dec 2, 2014 at 8:08 PM Filipe Manana wrote: > > > > On block group remove if the corresponding extent map was on the > > transaction->pending_chunks list, we were deleting the extent map > > from that list, through remo

Re: [PATCH 2/2] Btrfs: fix unprotected deletion from pending_chunks list

2019-01-21 Thread Alex Lyakas
Hi Filipe, On Tue, Dec 2, 2014 at 8:08 PM Filipe Manana wrote: > > On block group remove if the corresponding extent map was on the > transaction->pending_chunks list, we were deleting the extent map > from that list, through remove_extent_mapping(), without any > synchronization with chunk alloc