btrfs / btrfs-todo

An issues only repo to organize our TODO items
21 stars 2 forks source link

Look into dropping all locks when reading during search #3

Open josefbacik opened 4 years ago

josefbacik commented 4 years ago

A fun little firedrill this morning with Tejun hilighted that we still do reads under the parent lock during search. Thinking about this I'm not entirely sure we need it. We definitely need it for reada_for_search() because we look at the node, but when we do the actual blocking read for the extent buffer we already have all the info we need, we probably are fine just dropping the locks there and doing the read.

Potential problems are

We'd have to test it a bunch, but I think it would be ok. But it'd require very thorough investigation.