Skip to content

Commit 6e13aa7

Browse files
committed
fix ioem for 4.x kernel
Signed-off-by: YangKeao <[email protected]>
1 parent 0d257e6 commit 6e13aa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

driver/ioem.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,12 @@ static int ioem_sq_init_sched(struct request_queue *q, struct elevator_type *e)
737737

738738
ioem_data_init(id, ioem_sq_timer, irl);
739739
id->q = q;
740+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0)
740741
id->device = q->backing_dev_info.dev->devt;
742+
#else
743+
id->device = q->backing_dev_info->dev->devt;
744+
#endif
745+
741746
INIT_WORK(&id->unplug_work, ioem_sq_kick_queue);
742747

743748
eq->elevator_data = id;

0 commit comments

Comments
 (0)