Roland Dreier <[EMAIL PROTECTED]> writes:

> Definitely makes sense.  I queued the following version for 2.6.20,
> which gets the max CDB size directly from struct srp_cmd.  Does this
> look OK to you?

Looks good to me. I guess there's no way to sneak it into 2.6.19
anymore, right? ;)

Thanks,
Arne

> diff --git a/drivers/infiniband/ulp/srp/ib_srp.c 
> b/drivers/infiniband/ulp/srp/ib_srp.c
> index 4b09147..01776c9 100644
> --- a/drivers/infiniband/ulp/srp/ib_srp.c
> +++ b/drivers/infiniband/ulp/srp/ib_srp.c
> @@ -1716,7 +1716,8 @@ static ssize_t srp_create_target(struct
>       if (!target_host)
>               return -ENOMEM;
>  
> -     target_host->max_lun = SRP_MAX_LUN;
> +     target_host->max_lun     = SRP_MAX_LUN;
> +     target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb;
>  
>       target = host_to_target(target_host);
>  

_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to