diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2019-09-11 18:45:17 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-09-16 17:38:45 +0200 |
commit | cb8434f16479b6c00540e23d02d6e078ebe69a52 (patch) | |
tree | afd8e048881f19c3628bae84c52f022942d8e296 /fs/f2fs/Kconfig | |
parent | f2fs: fix to avoid accessing uninitialized field of inode page in is_alive() (diff) | |
download | linux-cb8434f16479b6c00540e23d02d6e078ebe69a52.tar.xz linux-cb8434f16479b6c00540e23d02d6e078ebe69a52.zip |
f2fs: fix inode rwsem regression
This is similar to 942491c9e6d6 ("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.
We don't need a check for IOCB_NOWAIT and !direct-IO because it
is checked in generic_write_checks().
Fixes: b91050a80cec ("f2fs: add nowait aio support")
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/Kconfig')
0 files changed, 0 insertions, 0 deletions