]> git.openfabrics.org - ~emulex/for-vlad/compat-rdma.git/commitdiff
Fixed SRP backport for SLES11 SP3
authorVladimir Sokolovsky <vlad@mellanox.com>
Tue, 10 Dec 2013 14:20:30 +0000 (16:20 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Tue, 10 Dec 2013 14:20:30 +0000 (16:20 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
patches/0005-BACKPORT-ib_srp.patch

index da487e13b4cea86c9eaf2c898ba2d30d80aa153d..62a4ef2bad60f57cfe9b8ac70553accea637b206 100644 (file)
@@ -56,7 +56,7 @@ index xxxxxxx..xxxxxxx xxxxxx
        if (ret == 0)
                ret = srp_connect_target(target);
  
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 6, 0))
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 6, 0)) || defined(CONFIG_COMPAT_SCSI_TARGET_UNBLOCK)
        scsi_target_unblock(&shost->shost_gendev, ret == 0 ? SDEV_RUNNING :
                            SDEV_TRANSPORT_OFFLINE);
 +#else