Re: 3.12.5 Target Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2014-05-15 at 22:26 +0000, Moussa Ba (moussaba) wrote:
> Thanks.
> 
> The following hunks from 98719d71f58d76616e8ba755f70f39f843ec540f do not apply at ALL.... There is no pi_support in 3.12.19
> 
> diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
> index 826eaf5..a171046 100644
> --- a/drivers/infiniband/ulp/isert/ib_isert.c
> +++ b/drivers/infiniband/ulp/isert/ib_isert.c
> @@ -562,7 +562,15 @@ isert_connect_request(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)
>  	struct isert_device *device;
>  	struct ib_device *ib_dev = cma_id->device;
>  	int ret = 0;
> -	u8 pi_support = np->tpg_np->tpg->tpg_attrib.t10_pi;
> +	u8 pi_support;
> +
> +	spin_lock_bh(&np->np_thread_lock);
> +	if (!np->enabled) {
> +		spin_unlock_bh(&np->np_thread_lock);
> +		pr_debug("iscsi_np is not enabled, reject connect request\n");
> +		return rdma_reject(cma_id, NULL, 0);
> +	}
> +	spin_unlock_bh(&np->np_thread_lock);
>  
>  	pr_debug("Entering isert_connect_request cma_id: %p, context: %p\n",
>  		 cma_id, cma_id->context);
> @@ -653,6 +661,7 @@ isert_connect_request(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)
>  		goto out_mr;
>  	}
>  
> +	pi_support = np->tpg_np->tpg->tpg_attrib.t10_pi;
>  	if (pi_support && !device->pi_capable) {
>  		pr_err("Protection information requested but not supported\n");
>  		ret = -EINVAL;
> 

You can safely remove the pi_support related part of this patch on
v3.12.19.

--nab

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux