On 05/05/2015 09:41 PM, Linus Torvalds wrote:
Jens, ping?
The test results should make this a no-brainer, but I hate how random
these flag ops.
Missed the original, apparently. I too am confused how this is a
correctness fix and not just an optimization.
+ if (read_len < len)
Christophe Leroy wrote:
> Using sendfile with below small program to get MD5 sums of some files,
> it appear that big files (over 64kbytes with 4k pages system) get a
> wrong MD5 sum while small files get the correct sum.
> This program uses sendfile() to send a file to an AF_ALG socket
> for hash
Using sendfile with below small program to get MD5 sums of some files,
it appear that big files (over 64kbytes with 4k pages system) get a
wrong MD5 sum while small files get the correct sum.
This program uses sendfile() to send a file to an AF_ALG socket
for hashing.
/* md5sum2.c */
#include
#i