]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: allow direct read for zoned device
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 30 Sep 2022 22:48:24 +0000 (15:48 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Oct 2022 22:01:32 +0000 (15:01 -0700)
commitfe21fffe4abbe3fcffee86e66892daf3db1c1e2b
tree717eb43c877b347de55ce514875e38d3f2955ece
parent35b02d9dcf4971a44bfa0a2bcd28747554ef8833
f2fs: allow direct read for zoned device

This reverts 7a805ec1099c ("f2fs: remove device type check for direct IO"),
and apply the below first version, since it contributed out-of-order DIO writes.

For zoned devices, f2fs forbids direct IO and forces buffered IO
to serialize write IOs. However, the constraint does not apply to
read IOs.

Cc: stable@vger.kernel.org
Fixes: 7a805ec1099c ("f2fs: remove device type check for direct IO")
Signed-off-by: Eunhee Rho <eunhee83.rho@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h