On Thu, Jan 20, 2022 at 02:42:26PM +0800, chenxiang wrote: > From: Xiang Chen <chenxiang66@xxxxxxxxxxxxx> > > Right now allocating aio_kiocb is in front of get_reqs_available(), > then need to free aio_kiocb if get_reqs_available() is failed. > Put get_reqs_availabe() in front of allocating aio_kiocb to avoid > freeing aio_kiocb if get_reqs_available() is failed. Except for the fact that this completely missed undoing get_reqs_available, how is that order any better?