We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 652ea69 commit 30002edCopy full SHA for 30002ed
mm/readahead.c
@@ -382,9 +382,9 @@ ondemand_readahead(struct address_space *mapping,
382
if (hit_readahead_marker) {
383
pgoff_t start;
384
385
- read_lock_irq(&mapping->tree_lock);
386
- start = radix_tree_next_hole(&mapping->page_tree, offset, max+1);
387
- read_unlock_irq(&mapping->tree_lock);
+ rcu_read_lock();
+ start = radix_tree_next_hole(&mapping->page_tree, offset,max+1);
+ rcu_read_unlock();
388
389
if (!start || start - offset > max)
390
return 0;
0 commit comments