mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
iscsi-scst, isert-scst: Make this driver build against RHEL 8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1295,7 +1295,8 @@ static struct isert_connection *isert_conn_create(struct rdma_cm_id *cm_id,
|
||||
* In mem-free devices, RC QPs can be created with a maximum of
|
||||
* (max_sge - 3) entries only.
|
||||
*/
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8)
|
||||
isert_conn->max_sge = isert_dev->device_attr.max_sge - 3;
|
||||
#else
|
||||
isert_conn->max_sge = isert_dev->device_attr.max_recv_sge - 3;
|
||||
|
||||
Reference in New Issue
Block a user