Set non blocking on /dev/rdma_cm

KrishnamRaju ErapaRaju Krishna2 at chelsio.com
Wed Aug 17 19:26:34 UTC 2016


Hi Hans,

The error "Inappropriate ioctl for device" is not occurring after applying your patch.
Will check whether rdma_get_cm_event() is blocking or not when fcntl(O_NONBLOCK) is set.

Thanks,
Krishna.

-----Original Message-----
From: Hans Petter Selasky [mailto:hps at selasky.org] 
Sent: Wednesday, August 17, 2016 3:06 PM
To: KrishnamRaju ErapaRaju <Krishna2 at chelsio.com>; Alex Bowden <alex.bowden at outlook.com>; freebsd-infiniband at freebsd.org
Subject: Re: Set non blocking on /dev/rdma_cm

On 08/17/16 11:30, Hans Petter Selasky wrote:
> On 08/17/16 09:03, KrishnamRaju ErapaRaju wrote:
>> Hi Alex,
>>
>>
>> I too faced the same issue earlier.  But could not look into 
>> it/report it due to other priorities.
>>
>> Hans, if you have root caused it please point me to the patch, few of 
>> my apps uses O_NONBLOCK.
>>
>
> Hi Alex,
>
> Can you try the attached patch?
>
> cd /usr/src
> cat ibcore_fionbio.diff | patch -p1
>
> --HPS
>

Hi,

Looks like we also need to support FIOASYNC. Updated patch attached.

--HPS



More information about the freebsd-infiniband mailing list