]> git.baikalelectronics.ru Git - 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)
commit34724b4bdcef7e66b8c918e5367060c1afa8a583
tree11871e815251466cb2a6f68ecbd02ef92ec7f953
parent336bf5b7c7e0364215062e709d8971b053d1cdb8
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: 0c9770dc19567b ("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