From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sj-iport-1.cisco.com (sj-iport-1.cisco.com [171.71.176.70]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "sj-iport-1.cisco.com", Issuer "Cisco SSCA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 522C1DE107 for ; Thu, 8 May 2008 01:32:07 +1000 (EST) From: Roland Dreier To: Stefan Roscher Subject: Re: [ewg] [PATCH] IB/ehca: Protect QP against destroying until all async events for it are handled. References: <200805071319.37164.ossrosch@linux.vnet.ibm.com> Date: Wed, 07 May 2008 08:32:03 -0700 In-Reply-To: <200805071319.37164.ossrosch@linux.vnet.ibm.com> (Stefan Roscher's message of "Wed, 7 May 2008 13:19:35 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: LinuxPPC-Dev , fenkes@de.ibm.com, LKML , raisch@de.ibm.com, OF-EWG List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > We are not sure if this should be fixed in the driver or in uverbs itself. > Roland, what's your opinion about this? Would be nice to be able to fix it in uverbs but I don't see how. In particular a kernel consumer has to have the same guarantee that no async events will come in after destroy QP returns. And I don't see any way generic code can provide a guarantee about what low-level driver code may do internally.