[PATCH 004/18] kdb-inatomic-usage
[email protected] Thu, 10 Jul 2008 20:58:06 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.debugging |
|---|---|
| Message-ID | <[email protected]> |
KDB should use the non-sleeping copy_from_user_atomic, rather than the sleeping copy_from_user, as it runs from interrupt level. Signed-off-by: Joe Korty <[email protected]> Index: 2.6.26-rc9/include/asm-x86/kdb.h =================================================================== --- 2.6.26-rc9.orig/include/asm-x86/kdb.h 2008-07-10 12:14:26.000000000 -0400 +++ 2.6.26-rc9/include/asm-x86/kdb.h 2008-07-10 12:24:53.000000000 -0400 @@ -81,7 +81,7 @@ } set_fs(KERNEL_DS); - r = __copy_to_user((void *)to_xxx, from, size); + r = __copy_to_user_inatomic((void *)to_xxx, from, size); set_fs(oldfs); return r; } @@ -99,7 +99,7 @@ } set_fs(KERNEL_DS); - r = __copy_to_user(to, (void *)from_xxx, size); + r = __copy_to_user_inatomic(to, (void *)from_xxx, size); set_fs(oldfs); return r; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.