Re: PATCH [bugfix for pipe(2) system call]

Tigran Aivazian (tigran@sco.COM)
Wed, 1 Dec 1999 10:37:17 +0000 (GMT)


On Wed, 1 Dec 1999, Jakub Jelinek wrote:
> In any case, you should use __copy* variants once the first copy_* succeeds.

Really? In this case there is no need to check for return value on the
last copy_to_user() either. But I don't think so, because after you have
done the first copy_from() but before you did the copy_to() (or
__copy_to as you suggest) the other CPU may have caused some activity that
swapped out that user page. So you can't use __copy() and you do need to
check for return.

If the above is incorrect, I would appreciate if you correct me.

Thank you,
Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/