diff options
| author | Yangtao Li <frank.li@vivo.com> | 2023-04-04 11:44:33 -0400 |
|---|---|---|
| committer | Mike Snitzer <snitzer@kernel.org> | 2023-04-04 13:39:32 -0400 |
| commit | 2a455a0b418f972d61b68f9321b7d1892c16b4f7 (patch) | |
| tree | 2cf084cee1d5313e506b9b6e6e96f360aced4335 | |
| parent | e6c908b5d86faf3dbcf314b1c07c342268e32def (diff) | |
| download | linux-dm-2a455a0b418f972d61b68f9321b7d1892c16b4f7.tar.gz | |
dm mirror: add DMERR message if alloc_workqueue fails
Notice: this object is not reachable from any branch.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Notice: this object is not reachable from any branch.
| -rw-r--r-- | drivers/md/dm-raid1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 3e947655746c5..4b2b40f81a1de 100644 --- 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) { |
