From owner-freebsd-infiniband@freebsd.org Thu May 19 12:30:23 2016 Return-Path: Delivered-To: freebsd-infiniband@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DBAAB40173 for ; Thu, 19 May 2016 12:30:23 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 189741223 for ; Thu, 19 May 2016 12:30:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 251351FE024; Thu, 19 May 2016 14:30:20 +0200 (CEST) Subject: Re: write() system call(via rdma_get_cm_event) is not honoring a signal with flag SA_RESTART. To: KrishnamRaju ErapaRaju , "freebsd-infiniband@freebsd.org" References: <4EAB2619577FCA4EBCE11F17B7373447C4313548@nice.asicdesigners.com> <3500e324-7d7c-ed94-5913-911fd9877bef@selasky.org> <4EAB2619577FCA4EBCE11F17B7373447C431372B@nice.asicdesigners.com> From: Hans Petter Selasky Message-ID: <6085b7db-aab4-0496-1789-0992bc1f1c5d@selasky.org> Date: Thu, 19 May 2016 14:33:40 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <4EAB2619577FCA4EBCE11F17B7373447C431372B@nice.asicdesigners.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-infiniband@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Infiniband on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 12:30:23 -0000 On 05/19/16 14:22, KrishnamRaju ErapaRaju wrote: > Hans, > > I think it's not a regression. > > To verify it I have fetched the latest sources(both FreeBSD & OFED 3.2) and started building... > Between, may I know when will OFED 3.2 patches be pushed to upstream? > > Also, before started building, I'd quickly replaced -ERESTARTSYS with -512 in ucma_get_event, I still don't see the write() system call getting restarted. > > Here are the return codes: > ucma_get_event, returns -512 > rdma_get_cm_event, returns -1, errorno: 512 > > So can FreeBSD understand the interrupted system call return value(-512) like Linux? Hi, I need to check this a bit closer. Possibly you'll need to loop in the application or library when you see errno 512. --HPS