]> err.no Git - linux-2.6/commit
[PATCH] i386: remove redundant might_sleep() in user accessors.
authorVadim Lobanov <vlobanov@speakeasy.net>
Fri, 14 Jul 2006 07:24:01 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:52 +0000 (21:53 -0700)
commit8477b55ba11a49515b26573a90414b718179c908
tree6a7f5f4c48242f071ae86e5a8c947bf905116d5b
parente78a887a5942d06c81ccf0793fbf2bd83e982122
[PATCH] i386: remove redundant might_sleep() in user accessors.

On i386, the user space accessor functions copy_from/to_user() both invoke
might_sleep(), do a quick sanity check, and then pass the work on to their
__copy_from/to_user() counterparts, which again invoke might_sleep().
Given that no actual work happens between these two calls, it is best to
eliminate one of the redundant might_sleep()s.

Signed-off-by: Vadim Lobanov <vlobanov@speakeasy.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/lib/usercopy.c