projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b362c73
)
dm mirror: add DMERR message if alloc_workqueue fails
author
Yangtao Li
<frank.li@vivo.com>
Tue, 4 Apr 2023 15:44:33 +0000
(11:44 -0400)
committer
Mike Snitzer
<snitzer@kernel.org>
Tue, 11 Apr 2023 16:01:01 +0000
(12:01 -0400)
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-raid1.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-raid1.c
b/drivers/md/dm-raid1.c
index 3e947655746c5125c75f549e9eff9d78a22f8153..4b2b40f81a1de7a775a7d7dfaf4dca917260c961 100644
(file)
--- a/
drivers/md/dm-raid1.c
+++ b/
drivers/md/dm-raid1.c
@@
-1501,8
+1501,10
@@
static int __init dm_mirror_init(void)
int r;
dm_raid1_wq = alloc_workqueue("dm_raid1_wq", 0, 0);
- if (!dm_raid1_wq)
+ if (!dm_raid1_wq) {
+ DMERR("Failed to alloc workqueue");
return -ENOMEM;
+ }
r = dm_register_target(&mirror_target);
if (r < 0) {