Whamcloud - gitweb
LU-13799 llite: Simplify cda_no_aio_complete use
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 19 Jan 2022 15:45:26 +0000 (10:45 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 17:19:11 +0000 (17:19 +0000)
commit7022557441476cb02fa163c86a0087a308929854
treed576be85a0ad5af163b3c688304a29f30ee3fd56
parent678899342c523219bc31be2bb9ca4dc0a26037c6
LU-13799 llite: Simplify cda_no_aio_complete use

It is better to handle AIO and DIO the same as much as
possible, limiting the difference to setup if possible.

In this spirit, move the check for DIO (is_sync_kiocb()) to
the setup function rather than cleanup and just use
no_aio_complete.

Lustre-change: https://review.whamcloud.com/44154
Lustre-commit: b60bd21ec5d5f34ed79c63158860b6f5e948dba2

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Iefc0865aee20958960f48539ad73c80c997ff0b4
Reviewed-on: https://review.whamcloud.com/44682
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/cl_io.c