Re: [PATCH] target/file: don't zero iter before iov_iter_bvec

From: Martin K. Petersen
Date: Wed Jan 13 2021 - 00:34:54 EST



Pavel,

> iov_iter_bvec() initialises iterators well, no need to pre-zero it
> beforehand as done in fd_execute_rw_aio(). Compilers can't optimise it
> out and generate extra code for that (confirmed with assembly).

Applied to 5.12/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering