]> git.baikalelectronics.ru Git - kernel.git/commit
fs/buffer: replace ll_rw_block()
authorZhang Yi <yi.zhang@huawei.com>
Thu, 1 Sep 2022 13:34:54 +0000 (21:34 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:06 +0000 (20:26 -0700)
commit78dba15e9185f428e35f6085e248048a3e07394a
treec2e00fdf54342f304778ff7aed61974ff6f2ff5e
parent26030c63022d55fc0a935784ecbfdadd5dfa20ca
fs/buffer: replace ll_rw_block()

ll_rw_block() is not safe for the sync IO path because it skip buffers
which has been locked by others, it could lead to false positive EIO
when submitting read IO. So stop using ll_rw_block(), switch to use new
helpers which could guarantee buffer locked and submit IO if needed.

Link: https://lkml.kernel.org/r/20220901133505.2510834-4-yi.zhang@huawei.com
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/buffer.c