[ofa-general] Re: The low level driver of mlx4 kmalloc 0 bytes in QP creation

Michael S. Tsirkin mst at dev.mellanox.co.il
Thu Jul 19 07:31:29 PDT 2007


> Quoting Roland Dreier <rdreier at cisco.com>:
> Subject: Re: The low level driver of mlx4 kmalloc 0 bytes in QP creation
> 
>  > If one creates a QP with 0 WR in the RQ in the kernel level, the low
>  > level driver of the mlx4
>  > will kmalloc 0 bytes (for the WR IDs of the RQ).
>  > (for example, the IPoIB CM creates such a QP)
>  > 
>  > Is this is an error?
> 
> The consensus seems to be that kmalloc(0) is OK, although various
> 2.6.22-rc kernels printed big tracebacks when it happens.  I think
> getting rid of the kmalloc(0) in mlx4 would make the code more
> complicated for no real gain.

Hmm, seems to crash with recent git kernels.

-- 
MST



More information about the general mailing list