Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
- index f101bfe8657a..8c9acb800a71 100644
- --- a/drivers/md/bcache/request.c
- +++ b/drivers/md/bcache/request.c
- @@ -390,15 +390,6 @@ static bool check_should_bypass(struct cached_dev *dc, struct bio *bio)
- op_is_write(bio_op(bio))))
- goto skip;
- - /*
- - * Flag for bypass if the IO is for read-ahead or background,
- - * unless the read-ahead request is for metadata
- - * (eg, for gfs2 or xfs).
- - */
- - if (bio->bi_opf & (REQ_RAHEAD|REQ_BACKGROUND) &&
- - !(bio->bi_opf & (REQ_META|REQ_PRIO)))
- - goto skip;
- -
- if (bio->bi_iter.bi_sector & (c->sb.block_size - 1) ||
- bio_sectors(bio) & (c->sb.block_size - 1)) {
- pr_debug("skipping unaligned io");
Advertisement
Add Comment
Please, Sign In to add comment