Re: [PATCH] Btrfs: fix crash during unmount due to race with delayed inode workers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 28, 2020 at 01:04:36PM +0000, fdmanana@xxxxxxxxxx wrote:
> From: Filipe Manana <fdmanana@xxxxxxxx>
> 
> During unmount we can have a job from the delayed inode items work queue
> still running, that can lead to at least two bad things_
> 
> 1) A crash, because the worker can try to create a transaction just
>    after the fs roots were freed;
> 
> 2) A transaction leak, because the worker can create a transaction
>    before the fs roots are freed and just after we committed the last
>    transaction and after we stopped the transaction kthread.
...
> +		 * This is a very rare case.

Added to misc-next, thanks. I'll tag it for stable but will not put to
5.6-rc queue given that it's very rare, unless requested.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux