Filipe Manana 510cd98350 Btrfs: fix inode cache waiters hanging on path allocation failure
[ Upstream commit 9d123a35d7e97bb2139747b16127c9b22b6a593e ]

If the caching thread fails to allocate a path, it returns without waking
up any cache waiters, leaving them hang forever. Fix this by following the
same approach as when we fail to start the caching thread: print an error
message, disable inode caching and make the wakers fallback to non-caching
mode behaviour (calling btrfs_find_free_objectid()).

Fixes: 581bb050941b4f ("Btrfs: Cache free inode numbers in memory")
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:46:46 +01:00
..
2019-08-06 19:05:23 +02:00
2019-12-17 20:38:33 +01:00
2019-12-17 20:39:43 +01:00
2020-01-17 19:45:52 +01:00
2019-12-17 20:38:44 +01:00
2019-12-17 20:38:15 +01:00
2020-01-09 10:17:57 +01:00
2018-12-21 14:13:04 +01:00
2017-09-04 19:05:15 -04:00
2019-12-05 15:38:25 +01:00