Skip to content
Commit 7f25bba8 authored by Al Viro's avatar Al Viro
Browse files

cifs_iovec_read: keep iov_iter between the calls of cifs_readdata_to_iov()



... we are doing them on adjacent parts of file, so what happens is that
each subsequent call works to rebuild the iov_iter to exact state it
had been abandoned in by previous one.  Just keep it through the entire
cifs_iovec_read().  And use copy_page_to_iter() instead of doing
kmap/copy_to_user/kunmap manually...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6130f531
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment