diff options
| author | Alan Stern <[email protected]> | 2006-10-04 02:17:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-10-04 07:55:30 -0700 |
| commit | e6a92013ba458804161c0c5b6d134d82204dc233 (patch) | |
| tree | ecee5fdcef80d1dba0ac6ea87370931ea39ffecd /include/linux/debugobjects.h | |
| parent | eabc069401bcf45bcc3f19e643017bf761780aa8 (diff) | |
[PATCH] SRCU: report out-of-memory errors
Currently the init_srcu_struct() routine has no way to report out-of-memory
errors. This patch (as761) makes it return -ENOMEM when the per-cpu data
allocation fails.
The patch also makes srcu_init_notifier_head() report a BUG if a notifier
head can't be initialized. Perhaps it should return -ENOMEM instead, but
in the most likely cases where this might occur I don't think any recovery
is possible. Notifier chains generally are not created dynamically.
[[email protected]: avoid statement-with-side-effect in macro]
Signed-off-by: Alan Stern <[email protected]>
Acked-by: Paul E. McKenney <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions