Whamcloud - gitweb
LU-13799 osc: Always set aio in anchor
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 19 Jan 2022 15:46:03 +0000 (10:46 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 17:19:17 +0000 (17:19 +0000)
commite1595f9abb3677922425a97abc8d8f8ab66866b7
treeaec8745b4690570a83e21c6978741bb9c7884b1d
parent7022557441476cb02fa163c86a0087a308929854
LU-13799 osc: Always set aio in anchor

We currently do not set csi_aio for DIO and use this to
control when we free the aio struct.  (For AIO, we must
free it in cl_sync_io_note, but for other users, we have to
wait until after cl_sync_io_wait has been called.)

The lack of csi_aio causes trouble for the implementation
of the next patch, so instead we always set it and control
freeing by checking at that time if we are doing DIO.

Lustre-change: https://review.whamcloud.com/44153
Lustre-commit: eadccb33ac4bbe54a01da5168f6170702f9b2629

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