]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix AIM7 regression
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Oct 2017 01:31:50 +0000 (18:31 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Oct 2017 01:31:50 +0000 (18:31 -0700)
commitaa3a5096f9a13f24b48ca477810d4ecafce1ff3c
treeb316042eb963aaede79c0ce3aa1ac8772a38f4db
parent4709aa778c14c0cac01806bfb6d2935cdd449710
xfs: fix AIM7 regression

Apparently our current rwsem code doesn't like doing the trylock, then
lock for real scheme.  So change our read/write methods to just do the
trylock for the RWF_NOWAIT case.  This fixes a ~25% regression in
AIM7.

Fixes: 0a368631 ("fs: support RWF_NOWAIT for buffered reads")
Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_file.c