From: majianpeng Date: Thu, 27 Jun 2013 07:56:06 +0000 (+0800) Subject: ceph: Don't use ceph-sync-mode for synchronous-fs. X-Git-Tag: v3.12-rc1~90^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab9b3807097fcb87b0e85a9ad82b12322d9cc63;p=pandora-kernel.git ceph: Don't use ceph-sync-mode for synchronous-fs. Sending reads and writes through the sync read/write paths bypasses the page cache, which is not expected or generally a good idea. Removing the write check is safe as there is a conditional vfs_fsync_range() later in ceph_aio_write that already checks for the same flag (via IS_SYNC(inode)). Signed-off-by: Jianpeng Ma Reviewed-by: Sage Weil --- Reading git-diff-tree failed