]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: set io_pages bdi hint
authorAndreas Gerstmayr <andreas.gerstmayr@catalysts.cc>
Tue, 10 Jan 2017 13:17:56 +0000 (14:17 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:05 +0000 (12:16 +0100)
commit6530d55b3407765a88b73f36c6b82d70577ab6ec
treeffbc7ec7dfc898703ef368c71288a20b9e14a7aa
parent049603539116a08cb2da801dbf0752b4518e1a03
ceph: set io_pages bdi hint

This patch sets the io_pages bdi hint based on the rsize mount option.
Without this patch large buffered reads (request size > max readahead)
are processed sequentially in chunks of the readahead size (i.e. read
requests are sent out up to the readahead size, then the
do_generic_file_read() function waits until the first page is received).

With this patch read requests are sent out at once up to the size
specified in the rsize mount option (default: 64 MB).

Signed-off-by: Andreas Gerstmayr <andreas.gerstmayr@catalysts.cc>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Documentation/filesystems/ceph.txt
fs/ceph/super.c
fs/ceph/super.h