Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2016 16:38:07 +0000
From:      Alex Bowden <alex.bowden@outlook.com>
To:        KrishnamRaju ErapaRaju <Krishna2@chelsio.com>, Hans Petter Selasky <hps@selasky.org>, "freebsd-infiniband@freebsd.org" <freebsd-infiniband@freebsd.org>
Subject:   Re: Set non blocking on /dev/rdma_cm
Message-ID:  <DM2PR05MB751E761B1E9642233C08281F7140@DM2PR05MB751.namprd05.prod.outlook.com>
In-Reply-To: <BN4PR12MB0818C6E44B81A4DED2B358F794140@BN4PR12MB0818.namprd12.prod.outlook.com>
References:  <DM2PR05MB75118A2E53E97548A432608F7130@DM2PR05MB751.namprd05.prod.outlook.com> <BN4PR12MB081885693F06A5B5666629D494140@BN4PR12MB0818.namprd12.prod.outlook.com> <516f3566-33f0-c1d6-ab2d-997290a16ae5@selasky.org> <ad67ccbe-4552-7fbd-b804-252d2ee385eb@selasky.org>, <BN4PR12MB0818C6E44B81A4DED2B358F794140@BN4PR12MB0818.namprd12.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hey Hans & Krishna,


I've applied the patches. I've got past the initial fcntl call. Do we need =
to add FIONWRITE and FIONREAD?


-Alex

________________________________
From: KrishnamRaju ErapaRaju <Krishna2@chelsio.com>
Sent: Wednesday, August 17, 2016 9:52 AM
To: Hans Petter Selasky; Alex Bowden; freebsd-infiniband@freebsd.org
Subject: RE: Set non blocking on /dev/rdma_cm

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_NONB=
LOCK) is set.

Thanks,
Krishna.

-----Original Message-----
From: Hans Petter Selasky [mailto:hps@selasky.org]
Sent: Wednesday, August 17, 2016 3:06 PM
To: KrishnamRaju ErapaRaju <Krishna2@chelsio.com>; Alex Bowden <alex.bowden=
@outlook.com>; freebsd-infiniband@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DM2PR05MB751E761B1E9642233C08281F7140>