Skip to content

Commit c7c879e

Browse files
osctobesnitm
authored andcommitted
dm: make workqueue names device-specific
Add device number to kdmflush workqueue name to help debugging CPU usage. Resulting `ps axfu` snippet: root 3791 0.0 0.0 0 0 ? I< paź19 0:00 \_ [kdmflush/253:7] root 3792 0.0 0.0 0 0 ? I< paź19 0:00 \_ [kcryptd_io/253:7] root 3793 0.0 0.0 0 0 ? I< paź19 0:00 \_ [kcryptd/253:7] root 3794 0.0 0.0 0 0 ? S paź19 0:00 \_ [dmcrypt_write/253:7] root 3814 0.0 0.0 0 0 ? I< paź19 0:00 \_ [kdmflush/253:8] root 3815 0.0 0.0 0 0 ? I< paź19 0:00 \_ [kdmflush/253:9] root 3816 0.0 0.0 0 0 ? I< paź19 0:00 \_ [kdmflush/253:10] Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent f635237 commit c7c879e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ static struct mapped_device *alloc_dev(int minor)
18001800

18011801
format_dev_t(md->name, MKDEV(_major, minor));
18021802

1803-
md->wq = alloc_workqueue("kdmflush", WQ_MEM_RECLAIM, 0);
1803+
md->wq = alloc_workqueue("kdmflush/%s", WQ_MEM_RECLAIM, 0, md->name);
18041804
if (!md->wq)
18051805
goto bad;
18061806

0 commit comments

Comments
 (0)