diff options
author | 2019-07-04 16:24:44 +0100 | |
---|---|---|
committer | 2019-09-09 14:59:02 +0200 | |
commit | 9d123a35d7e97bb2139747b16127c9b22b6a593e (patch) | |
tree | f84a216a61618bdd61f37557513d0e982b037a1d /fs/btrfs/tree-log.c | |
parent | Btrfs: fix inode cache waiters hanging on failure to start caching thread (diff) | |
download | wireguard-linux-9d123a35d7e97bb2139747b16127c9b22b6a593e.tar.xz wireguard-linux-9d123a35d7e97bb2139747b16127c9b22b6a593e.zip |
Btrfs: fix inode cache waiters hanging on path allocation failure
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions