From owner-freebsd-drivers@freebsd.org Sat Jul 7 12:39:00 2018 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 223C2103FF04; Sat, 7 Jul 2018 12:39:00 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 B601F74945; Sat, 7 Jul 2018 12:38:59 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (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 0350626011E; Sat, 7 Jul 2018 14:38:51 +0200 (CEST) Subject: Re: ib_unregister_device - OFED related question To: "Somayajulu, David" , "freebsd-drivers@freebsd.org" , "freebsd-net@freebsd.org" References: From: Hans Petter Selasky Message-ID: Date: Sat, 7 Jul 2018 14:38:32 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2018 12:39:00 -0000 On 07/07/18 02:49, Somayajulu, David wrote: > We see that module_unload() grabs the Gaint Lock prior to invoking UNLOAD. Isn't this a problem with cma_process_remove() or am I missing something? Hi, The LinuxKPI should DROP_GIANT and PICKUP_GIANT when sleeping. I haven't checked FreeBSD 10 recently, but this is the case for FreeBSD 11 and FreeBSD 12. --HPS