mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
Btrfs end_bio_extent_readpage should look for locked bits
A recent commit caches the extent state in end_bio_extent_readpage, but the search it does should look for locked extents. This fixes things to make it more effective. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
0e4f8f8888
commit
0d399205ed
@ -1761,7 +1761,7 @@ static void end_bio_extent_readpage(struct bio *bio, int err)
|
||||
prefetchw(&bvec->bv_page->flags);
|
||||
|
||||
spin_lock(&tree->lock);
|
||||
state = find_first_extent_bit_state(tree, start, 0);
|
||||
state = find_first_extent_bit_state(tree, start, EXTENT_LOCKED);
|
||||
if (state && state->start == start) {
|
||||
/*
|
||||
* take a reference on the state, unlock will drop
|
||||
|
Loading…
Reference in New Issue
Block a user