Re: [PATCH v3 4/7] target/file: allocate the bvec array as part of struct target_core_file_cmd

2021-01-10 Thread Ming Lei
On Sat, Jan 09, 2021 at 04:03:00PM +, Pavel Begunkov wrote: > From: Christoph Hellwig > > This saves one memory allocation, and ensures the bvecs aren't freed > before the AIO completion. This will allow the lower level code to be > optimized so that it can avoid allocating another bvec

[PATCH v3 4/7] target/file: allocate the bvec array as part of struct target_core_file_cmd

2021-01-09 Thread Pavel Begunkov
From: Christoph Hellwig This saves one memory allocation, and ensures the bvecs aren't freed before the AIO completion. This will allow the lower level code to be optimized so that it can avoid allocating another bvec array. Signed-off-by: Christoph Hellwig Signed-off-by: Pavel Begunkov ---