+ btrfs-readpages-should-submit-io-as-read-ahead.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: btrfs: readpages() should submit IO as read-ahead
has been added to the -mm tree.  Its filename is
     btrfs-readpages-should-submit-io-as-read-ahead.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/btrfs-readpages-should-submit-io-as-read-ahead.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/btrfs-readpages-should-submit-io-as-read-ahead.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jens Axboe <axboe@xxxxxxxxx>
Subject: btrfs: readpages() should submit IO as read-ahead

a_ops->readpages() is only ever used for read-ahead.  Ensure that we pass
this information down to the block layer.

Link: http://lkml.kernel.org/r/20180621010725.17813-4-axboe@xxxxxxxxx
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Chris Mason <clm@xxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Cc: Theodore Ts'o <tytso@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


diff -puN fs/btrfs/extent_io.c~btrfs-readpages-should-submit-io-as-read-ahead fs/btrfs/extent_io.c
--- a/fs/btrfs/extent_io.c~btrfs-readpages-should-submit-io-as-read-ahead
+++ a/fs/btrfs/extent_io.c
@@ -3116,7 +3116,7 @@ static inline void __do_contiguous_readp
 
 	for (index = 0; index < nr_pages; index++) {
 		__do_readpage(tree, pages[index], btrfs_get_extent, em_cached,
-				bio, 0, bio_flags, 0, prev_em_start);
+				bio, 0, bio_flags, REQ_RAHEAD, prev_em_start);
 		put_page(pages[index]);
 	}
 }
_

Patches currently in -mm which might be from axboe@xxxxxxxxx are

mpage-add-argument-structure-for-do_mpage_readpage.patch
mpage-mpage_readpages-should-submit-io-as-read-ahead.patch
btrfs-readpages-should-submit-io-as-read-ahead.patch
ext4-readpages-should-submit-io-as-read-ahead.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux