]> git.hungrycats.org Git - linux/commit
[PATCH] might_sleep() checks for x86 usercopy functions
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Aug 2003 04:13:58 +0000 (21:13 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 04:13:58 +0000 (21:13 -0700)
commit4bca8b2e2c42f1f7bd1763882481b70242960870
tree8ae96fbfae74238ed0a2110ad510e5a5f438c266
parent30c633b8cf77202f8ecdab2b3361a62605b3c6cb
[PATCH] might_sleep() checks for x86 usercopy functions

From: Matt Mackall <mpm@selenic.com>

This only checks in the non-__ versions, as those are occassionally
called inside things like kmap_atomic pairs which take a spinlock in
with highmem. It's all conditional on CONFIG_DEBUG_SPINLOCK_SLEEP
(which isn't quite the right name) so there's no overhead for normal
builds.
arch/i386/lib/usercopy.c
include/asm-i386/uaccess.h