Cobra_Fast

Linux 5.1 bcache no background/readahead bypass patch

May 16th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
  2. index f101bfe8657a..8c9acb800a71 100644
  3. --- a/drivers/md/bcache/request.c
  4. +++ b/drivers/md/bcache/request.c
  5. @@ -390,15 +390,6 @@ static bool check_should_bypass(struct cached_dev *dc, struct bio *bio)
  6. op_is_write(bio_op(bio))))
  7. goto skip;
  8.  
  9. - /*
  10. - * Flag for bypass if the IO is for read-ahead or background,
  11. - * unless the read-ahead request is for metadata
  12. - * (eg, for gfs2 or xfs).
  13. - */
  14. - if (bio->bi_opf & (REQ_RAHEAD|REQ_BACKGROUND) &&
  15. - !(bio->bi_opf & (REQ_META|REQ_PRIO)))
  16. - goto skip;
  17. -
  18. if (bio->bi_iter.bi_sector & (c->sb.block_size - 1) ||
  19. bio_sectors(bio) & (c->sb.block_size - 1)) {
  20. pr_debug("skipping unaligned io");
Advertisement
Add Comment
Please, Sign In to add comment