projects/linux·commit 55af6bb5

md: convert cpu notifier to return encapsulate errno value

55af6bb5 · Akinobu Mita <[email protected]> · 2010-05-26 14:43:35 -07:00

By the previous modification, the cpu notifier can return encapsulate
errno value.  This converts the cpu notifiers for raid5.

Signed-off-by: Akinobu Mita <[email protected]>
Cc: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
55af6bb509d3ef2696faddd4a734bf024794b337
Parents
d882ba69

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/md/raid5.cmodified+1−1View file

drivers/md/raid5.c

View file
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 9ea17d6..d2c0f94 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -4645,7 +4645,7 @@ static int raid456_cpu_notify(struct notifier_block *nfb, unsigned long action,
kfree(percpu->scribble);
pr_err("%s: failed memory allocation for cpu%ld\n",
__func__, cpu);
- return NOTIFY_BAD;
+ return notifier_from_errno(-ENOMEM);
}
break;
case CPU_DEAD: