]>
Commit | Line | Data |
---|---|---|
90256aab JR |
1 | --- lin_tape-3.0.23/intercept.c~ 2018-06-18 19:40:39.000000000 +0200 |
2 | +++ lin_tape-3.0.23/intercept.c 2018-06-18 19:43:27.059968542 +0200 | |
3 | @@ -1365,7 +1365,11 @@ | |
4 | /* Only for fo devices */ | |
5 | /* This 'if' must match the one above in create unique */ | |
6 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) | |
7 | + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0) | |
8 | + sdev->request_queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE, NULL); | |
9 | + #else | |
10 | sdev->request_queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE); | |
11 | + #endif | |
12 | __scsi_init_queue(sdev->host, sdev->request_queue); | |
13 | #else | |
14 | sdev->request_queue = __scsi_alloc_queue(sdev->host, NULL); |