scst: Port to Linux kernel v5.0 (merge r7849 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7888 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-01-13 21:27:19 +00:00
parent 5d081b0af4
commit 2b477bd719
5 changed files with 35 additions and 3 deletions
+5
View File
@@ -1663,7 +1663,12 @@ static struct scsi_host_template scst_lcl_ini_driver_template = {
.sg_tablesize = 0xFFFF,
.max_sectors = 0xffff,
/* Possible pass-through backend device may not support clustering */
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0)
.use_clustering = DISABLE_CLUSTERING,
#else
.dma_boundary = PAGE_SIZE - 1,
.max_segment_size = PAGE_SIZE,
#endif
.skip_settle_delay = 1,
.module = THIS_MODULE,
};