From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7bb1ccf25e2907ae4169acf3f24f26a6.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199610172131.QAA30916@kamper.digimag.net> Date: Thu, 17 Oct 1996 23:30:06 +0100 (GMT+0100) From: Marin Purgar - PMC Subject: Re: Linux-2.1. In-Reply-To: Hi! On Thu, 17 Oct 1996, Linus Torvalds wrote: > > Now, because the checking cannot be moved outside the loop, some loops have > to be moved inside the checking if we want to have the best possible > performance. That's why I want to add the new functions "clear_user()" and > "strncpy_from_user()" : those are things where we're currently looping > outside the exception code for no really good reason (as a side note: those > are also things that generally need architecture-specific functions for the > best performance anyway). There is still issue (tought not directly related to kernel source). What to do with such functions when the exception occurs in the middle of user space cleared, copyed from or copyed to (assuming functions as clear_user, strncpy_from_user, strncpy_to_user) ? Should they return the acctual number of bytes cleared/trensfered or just EINVAL assuming the function has failed completly (even if some partition of memory was cleared/transfered) ? > All the other loops I have looked through that do checking inside the loop > are not really a problem. They do some non-trivial operation on the data > inside the loop (translating a byte with opost processing in the case of the > tty layer, for example), and as such the very small overhead caused by the > exception handling isn't really an issue. > bb4now, PMC -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null