Commit b0e8c75e authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix subvol deletion deadlock



d_prune_aliases() may call bch2_evict_inode(), which needs
c->vfs_inodes_list_lock.

Fix this by always calling igrab() before putting the inodes onto our
disposal list, and then calling d_prune_aliases() with
c->vfs_inodes_lock dropped.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5bc74082
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment