diff options
| author | Ingo Molnar <mingo@redhat.com> | 2004-08-26 20:33:18 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-26 20:33:18 -0700 |
| commit | 026a14f002f20339ea70ec66c8b738bc59b9d08b (patch) | |
| tree | 32c58da59aa962d137271c7fd17503944597f9f4 /include/linux/writeback.h | |
| parent | c46cde9d384836cfb1ea6a0731434ffa060e7450 (diff) | |
[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>
Diffstat (limited to 'include/linux/writeback.h')
| -rw-r--r-- | include/linux/writeback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 061865cfe82c..7c165c334be5 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -75,6 +75,7 @@ void sync_inodes(int wait); /* writeback.h requires fs.h; it, too, is not included from here. */ static inline void wait_on_inode(struct inode *inode) { + might_sleep(); if (inode->i_state & I_LOCK) __wait_on_inode(inode); } |
