[PATCH] Add a few might_sleep() checks
authorIngo Molnar <mingo@redhat.com>
Fri, 27 Aug 2004 03:33:18 +0000 (20:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 03:33:18 +0000 (20:33 -0700)
commit026a14f002f20339ea70ec66c8b738bc59b9d08b
tree32c58da59aa962d137271c7fd17503944597f9f4
parentc46cde9d384836cfb1ea6a0731434ffa060e7450
[PATCH] Add a few might_sleep() checks

Add a whole bunch more might_sleep() checks.  We also enable might_sleep()
checking in copy_*_user().  This was non-trivial because of the "copy_*_user()
in atomic regions" trick would generate false positives.  Fix that up by
adding a new __copy_*_user_inatomic(), which avoids the might_sleep() check.

Only i386 is supported in this patch.

With: Arjan van de Ven <arjanv@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
38 files changed:
arch/i386/lib/usercopy.c
drivers/block/ll_rw_blk.c
fs/buffer.c
fs/dcache.c
fs/ext3/inode.c
fs/file_table.c
fs/fs-writeback.c
fs/inode.c
fs/jbd/revoke.c
fs/proc/base.c
include/asm-alpha/uaccess.h
include/asm-arm/uaccess.h
include/asm-arm26/uaccess.h
include/asm-cris/uaccess.h
include/asm-h8300/uaccess.h
include/asm-i386/checksum.h
include/asm-i386/uaccess.h
include/asm-ia64/uaccess.h
include/asm-m68k/uaccess.h
include/asm-m68knommu/uaccess.h
include/asm-mips/uaccess.h
include/asm-parisc/uaccess.h
include/asm-ppc/uaccess.h
include/asm-ppc64/uaccess.h
include/asm-s390/uaccess.h
include/asm-sh/uaccess.h
include/asm-sh64/uaccess.h
include/asm-sparc/uaccess.h
include/asm-sparc64/uaccess.h
include/asm-um/uaccess.h
include/asm-v850/uaccess.h
include/asm-x86_64/uaccess.h
include/linux/buffer_head.h
include/linux/pagemap.h
include/linux/writeback.h
mm/filemap.c
mm/mempool.c
mm/mmap.c