aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 1e3b97f0ae6e..394c5bd81271 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2097,6 +2097,9 @@ EXPORT_SYMBOL(kblockd_schedule_work);
2097 2097
2098int __init blk_dev_init(void) 2098int __init blk_dev_init(void)
2099{ 2099{
2100 BUILD_BUG_ON(__REQ_NR_BITS > 8 *
2101 sizeof(((struct request *)0)->cmd_flags));
2102
2100 kblockd_workqueue = create_workqueue("kblockd"); 2103 kblockd_workqueue = create_workqueue("kblockd");
2101 if (!kblockd_workqueue) 2104 if (!kblockd_workqueue)
2102 panic("Failed to create kblockd\n"); 2105 panic("Failed to create kblockd\n");