]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm-nfs: force random mode for the backend file
authorJoe Jin <joe.jin@oracle.com>
Mon, 4 Jun 2012 05:45:02 +0000 (13:45 +0800)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 29 Jun 2012 08:36:37 +0000 (01:36 -0700)
commit8bdd8d54fc0ec89f396062b3c18da6b0f5d904cb
treeca7a5e490c71a728b46fc9a6e22a98bc56030b78
parentacd92ae52cc861cfd30589404aed0dc2aafd44d0
dm-nfs: force random mode for the backend file

Orabug: 14092678
Without this flag page_cache_sync_readahead() might take some seconds to
complete.
Since dm-nfs used for ovm and as vdisk, random access is expect, so force
set this flag when open the backend file.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Adnan Misherfi <adnan.misherfi@oracle.com>
Cc: Kurt C Hackel <kurt.hackel@oracle.com>
Cc: Andrew Thomas <andrew.thomas@oracle.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/md/dm-nfs.c