From 968d31e15f5d831f65af88c131f30b1e0ea67334 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Tue, 5 Dec 2017 18:21:32 +0200 Subject: [PATCH] ib_iser: Added support for SLES12 SP3 Signed-off-by: Vladimir Sokolovsky --- patches/0009-BACKPORT-ib_iser.patch | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/patches/0009-BACKPORT-ib_iser.patch b/patches/0009-BACKPORT-ib_iser.patch index c46b073..4053213 100644 --- a/patches/0009-BACKPORT-ib_iser.patch +++ b/patches/0009-BACKPORT-ib_iser.patch @@ -9,7 +9,8 @@ Signed-off-by: Vladimir Neyelov drivers/infiniband/ulp/iser/iser_initiator.c | 73 +++++- drivers/infiniband/ulp/iser/iser_memory.c | 364 ++++++++++++++++++++++++++- drivers/infiniband/ulp/iser/iser_verbs.c | 2 + - 5 files changed, 478 insertions(+), 7 deletions(-) + drivers/scsi/scsi_priv.h | 2 + + 6 files changed, 480 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index xxxxxxx..xxxxxxx xxxxxx @@ -759,3 +760,18 @@ index xxxxxxx..xxxxxxx xxxxxx void iser_err_comp(struct ib_wc *wc, const char *type) { +diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h +index xxxxxxx..xxxxxxx xxxxxx +--- a/drivers/scsi/scsi_priv.h ++++ b/drivers/scsi/scsi_priv.h +@@ -187,8 +187,10 @@ static inline void scsi_dh_remove_device(struct scsi_device *sdev) { } + */ + + #define SCSI_DEVICE_BLOCK_MAX_TIMEOUT 600 /* units in seconds */ ++#ifndef HAVE_SCSI_DEVICE_SCSI_INTERNAL_DEVICE_BLOCK + extern int scsi_internal_device_block(struct scsi_device *sdev); + extern int scsi_internal_device_unblock(struct scsi_device *sdev, + enum scsi_device_state new_state); ++#endif + + #endif /* _SCSI_PRIV_H */ -- 2.41.0