Thread (1 message) 1 message, 1 author, 2021-01-13

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

From: Martin K. Petersen <hidden>
Date: 2021-01-13 05:35:09
Also in: lkml, target-devel

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help