]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Btrfs: fix inode cache waiters hanging on failure to start caching thread
authorFilipe Manana <fdmanana@suse.com>
Thu, 4 Jul 2019 15:24:32 +0000 (16:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:01 +0000 (14:59 +0200)
commita68ebe0790fc88b4314d17984a2cf99ce2361901
tree11871e815251466cb2a6f68ecbd02ef92ec7f953
parent29d47d00e0ae61668ee0c5d90bef2893c8abbafa
Btrfs: fix inode cache waiters hanging on failure to start caching thread

If we fail to start the inode caching thread, we print an error message
and disable the inode cache, however we never wake up any waiters, so they
hang forever waiting for the caching to finish. Fix this by waking them
up and have them fallback to a call to btrfs_find_free_objectid().

Fixes: e60efa84252c05 ("Btrfs: avoid triggering bug_on() when we fail to start inode caching task")
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode-map.c