Skip to content
Commit fede766f authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: avoid deadlocks from GFP_KERNEL allocations during btrfs_real_readdir



Btrfs has an optimization where it will preallocate dentries during
readdir to fill in enough information to open the inode without an extra
lookup.

But, we're calling d_alloc, which is doing GFP_KERNEL allocations, and
that leads to deadlocks because our readdir code has tree locks held.

For now, disable this optimization.  We'll fix the gfp mask in the next
merge window.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 7654b724
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment