+28
−12
Loading
mainline inclusion from mainline-v6.6-rc1 commit 3486237c category: perf bugzilla: https://gitee.com/openeuler/kernel/issues/I90ZB5 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3486237c6fe8d0e5024f9c48bfe73843b1bd8284 -------------------------------- Make the logic a bit easier to follow: 1) Add a release_bio out path, as everybody needs to touch that, and have our bio ref check jump there if it's non-zero. 2) Add a kiocb local variable. 3) Add comments for each of the three conditions (sync, inline, or async workqueue punt). No functional changes in this patch. Reviewed-by:Darrick J. Wong <djwong@kernel.org> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Dave Chinner <dchinner@redhat.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk> Conflicts: fs/iomap/direct-io.c [ 3e08773c ("block: switch polling to be bio based") is not applied. ] Signed-off-by:
Zhihao Cheng <chengzhihao1@huawei.com>