mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
block: catch trying to use more bits than request->cmd_flags has
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
c69d48540c
commit
9eb55b030c
1 changed files with 3 additions and 0 deletions
|
@ -2097,6 +2097,9 @@ EXPORT_SYMBOL(kblockd_schedule_work);
|
|||
|
||||
int __init blk_dev_init(void)
|
||||
{
|
||||
BUILD_BUG_ON(__REQ_NR_BITS > 8 *
|
||||
sizeof(((struct request *)0)->cmd_flags));
|
||||
|
||||
kblockd_workqueue = create_workqueue("kblockd");
|
||||
if (!kblockd_workqueue)
|
||||
panic("Failed to create kblockd\n");
|
||||
|
|
Loading…
Reference in a new issue