From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id CC13EA0546;
	Tue,  6 Apr 2021 16:50:37 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 6CF171410E7;
	Tue,  6 Apr 2021 16:46:38 +0200 (CEST)
Received: from FRA01-MR2-obe.outbound.protection.outlook.com
 (mail-eopbgr90132.outbound.protection.outlook.com [40.107.9.132])
 by mails.dpdk.org (Postfix) with ESMTP id 352CC1410E7
 for <dev@dpdk.org>; Tue,  6 Apr 2021 16:46:37 +0200 (CEST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=StEw7WEa0nthLR4+AlV95eyZL6FkCs5v4W2oLqlEIRPDuIefV09XCJnb1L0kqtp+ULS2OANFi49dGw0/v7bjBF3vU0PKv/8e2O5vLxuEce7et7viv0bZgkAb62KjzvAIch/sRMK+DGPt2VFRepps/cWDvnZyTG1poFZPfz8zgKiRVC0hjKKDtNTymr8BQDdde2vOVVqs15hLPdCMEoOkytudqnetQmLNd671O/cFJeg2yVMivHHQ/mvGXTSQf3j8CQ+6oYEJSZG4ERMsqLlo3rzBuUl9fYpyA5X3Rcn0FgdxQt1OpgiQHKoA7Ba9w5WGJyMFPjEcuA8OsSukGHkQhQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=PF/MBsbZ0gScB5D3/Frj8qHHDd1ip9yQ5g/UXQa6xcs=;
 b=TKm2lHBfn1w4ZL5+ztjKFgFE4zdP8vuEH5UyeIDH7Tm4/6/4+7iTS8OzLgkCU47q83t2cFmRhOvpNGzIN85tE7LzmUuFiUTYx2sgOsYEI+z0RODhuJi1cydem3sX6qJsiLvvnwuGbgynzZvtJRiyWv6Nde0aBqkB3IsBWCDpy9H1r7GhM0osCU2kMrEOh15dtB5tQA2bb90vLUHGhRDp+R6MzMYpcw1LHfyQnvgXKkMFjKwtsMOLdc509TaVsU8Zoxgx2cwpXPWVnR0QcPpvSc1OYtPcL6w1wpXPm/2vK/WZ1ij8ru+3E45En6oLvDi6eZYcIMxuYA9VjwkTiPofFQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=ekinops.com; dmarc=pass action=none header.from=ekinops.com;
 dkim=pass header.d=ekinops.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ekinops.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=PF/MBsbZ0gScB5D3/Frj8qHHDd1ip9yQ5g/UXQa6xcs=;
 b=meaTgEt4Ojogh6zzS0J/jpo41U6r+/2q41UMrpdrU1wxMlsLT9l1R79ht3CQ8u56OOZOXw1LJBdnWKzOGKIxx2af3snkrndornYSufMuzMMSO0dsXNnzsuLG7JKQXL1MFhHAK0oYq5ENK17H6reQXvFCEAz0cl7fcNZsne9AcAA=
Authentication-Results: dpdk.org; dkim=none (message not signed)
 header.d=none;dpdk.org; dmarc=none action=none header.from=ekinops.com;
Received: from MRZP264MB2442.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:7::10) by
 MR2P264MB0291.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:11::10) with
 Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3999.29; Tue, 6 Apr 2021 14:46:36 +0000
Received: from MRZP264MB2442.FRAP264.PROD.OUTLOOK.COM
 ([fe80::35cd:48b0:ee32:20b0]) by MRZP264MB2442.FRAP264.PROD.OUTLOOK.COM
 ([fe80::35cd:48b0:ee32:20b0%7]) with mapi id 15.20.3999.032; Tue, 6 Apr 2021
 14:46:36 +0000
From: Renata Saiakhova <Renata.Saiakhova@ekinops.com>
To: 
Cc: dev@dpdk.org,
	Renata Saiakhova <Renata.Saiakhova@ekinops.com>
Date: Tue,  6 Apr 2021 16:46:13 +0200
Message-Id: <20210406144614.3394-1-Renata.Saiakhova@ekinops.com>
X-Mailer: git-send-email 2.17.2
Content-Type: text/plain
X-Originating-IP: [91.183.184.98]
X-ClientProxiedBy: AM3PR05CA0134.eurprd05.prod.outlook.com
 (2603:10a6:207:3::12) To MRZP264MB2442.FRAP264.PROD.OUTLOOK.COM
 (2603:10a6:501:7::10)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from renataOAB.oneaccess.intra (91.183.184.98) by
 AM3PR05CA0134.eurprd05.prod.outlook.com (2603:10a6:207:3::12) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.3999.28 via Frontend Transport; Tue, 6 Apr 2021 14:46:36 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: a75a681c-2986-408f-5b52-08d8f90ac768
X-MS-TrafficTypeDiagnostic: MR2P264MB0291:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <MR2P264MB0291F42278898A91B843C95B92769@MR2P264MB0291.FRAP264.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:2150;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: n2R028dR+MlaJHz86/thWJTUXR/nJKSQ+//qLzkTI5HmEHeQKaLFKHG1oWoKN3AfCyQHetwSJNz0XnIIpPWxHDSbdNysLw2TVI9IR/Wk5rfpvknInF6DpBuZuyeSpK/EqQK75ngtZ4o/Ak81kCH+TTMWlOjPtX4iSHvmpG+FyPv9M0yYQE/C86IQnq9mWGhZtwsBlUUvEnvMEi2ene7vYQpTdWXjyNe5VTcxLsEAMURPsqCF2C+f2eBQHI5CaAvAvM4iy/BkLV8+LX9S5XolnWhZEVF+KAChZdkq737XB9fRteP/4ONUiH4rkO2r3WqAmH1AZGD4TL8VD4jo/66FJjyxkocI1sAvhIHqJriSQSJjcXz50LMI2K3d4qqEQGMzpmCMErsOHjszhw6l1pyFxu2iOA5s3R5Ab7/kQEMKj5zlamjhJj8IxJwpCiNE7o7LCmm3+zm741BtGCO6tkfnD9UgKYQQozcJS2gQjI1pcPfr3kdKp8mVDiF4zybih5AhCV6mLi1tYPNEE9RC3Q2TgmAI1z4rfo6yi7KUiv5Gssq6xCghMBbBYimMSovFm8D7Gyc1gszIvy25IRmMFnzMZ0Pq2WihQwQygGZq8JJ8KJn/oDcepXhKbKF+0hJLfOBpB49kVL8617L09fT02+s3ZDrh+QTkHfRE7lvSl8SNv95Y8kIRYIvdg1D+Q9NDjgYODTEI6kJ/Sts2LXElS1OgSg==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:MRZP264MB2442.FRAP264.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(376002)(396003)(346002)(39850400004)(366004)(136003)(6486002)(1076003)(956004)(86362001)(316002)(5660300002)(478600001)(8676002)(36756003)(66946007)(107886003)(109986005)(52116002)(8936002)(38100700001)(83380400001)(6666004)(26005)(186003)(16526019)(2906002)(66476007)(6512007)(66556008)(2616005)(6506007)(4326008)(38350700001)(266003);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?qAp8D8fhflRSI+uwzHTDv3WtXjyVFMi7uRfjjglt6RNpgGKJgk6c2Zk1ujfI?=
 =?us-ascii?Q?BsFh27VtSdMIoo4ZG+dKI+2zOyErEsVVB1Foel3wLidR3lt+rPAfZpfeFlaQ?=
 =?us-ascii?Q?LXV91jjTNY3WM2s1odXPjtNR5SIwnmIggJ16da23V5e16D9WisSOgPgh43aA?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zWnrFCsB9K9/S7rmi1kGwKXR0wBK6QrWInGYzsHkTNbcVzg3eeWv?=
 =?us-ascii?Q?zOtisJ00qRIx/lz9LAI5HpFdCUWfyoVuFA8IvZTJc5RzkXbdmpPJKhRKpQBs?=
 =?us-ascii?Q?fSATufTEHTdt3z5k1ljkTaifL8M1aoTXRpEGCliGn3B2kp8bHJkkhUpG3AzV?=
 =?us-ascii?Q?e+cKLD4uy+rNqoH8GwnOCoZoqV1iZuIK1yBjLjQFHcyF4L9tsk8h9AhtTz3o?=
 =?us-ascii?Q?sqvgxDoQMsvDEbF42VlKWF/9ebzC2rhoplYzpUxCAIEK7d2jw/MLRdis/m6z?=
 =?us-ascii?Q?qC7jhUXgY2nc6cQt8hjBNlvS?=
X-OriginatorOrg: ekinops.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a75a681c-2986-408f-5b52-08d8f90ac768
X-MS-Exchange-CrossTenant-AuthSource: MRZP264MB2442.FRAP264.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2021 14:46:36.4932 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f57b78a6-c654-4771-a72f-837275f46179
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: HfjV1vPzH6nDSBTXyTNAPp3+Z7j+jKw8qS8lHKebHKs7ky2vi/IGiCbdXdKMVYgK6mrOoWM/Ch07V+fE+Bo+Fw+LhK3xOFNDUZ5oTUEZpLg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MR2P264MB0291
Subject: [dpdk-dev] [PATCH v5 0/1] eal/interrupts: add synchronous wrapper
 around unregister
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

For pci_vfio, while removing the device by rte_dev_remove(),
pci_vfio_disable_notifier() will call rte_intr_callback_unregister(),
which may return -EAGAIN, if an interrupt source (kernel) has some active
callbacks right now. As a result, the callback (req notifier) can be never unregistered,
and the corresponding descriptor (vfio_req_intr_handle.fd) can be never closed.
The kernel will continuously try to notify the user space using req notifier, but as
the device is already removed, in this case it even cannot find a bus for that
device, the log is full of messages "EAL: Cannot find bus for device (XX:XX.X)"

v5:
  Re-spin with windows update and 21.05 edition
v4:
* Typo spelling in commit message
v3:
* Subject line reworded
v2:
* Use only for pci-vfio in pci_vfio_disable_notifier()

Renata Saiakhova (1):
  eal/interrupts: add synchronous wrapper around unregister

 drivers/bus/pci/linux/pci_vfio.c        |  2 +-
 lib/librte_eal/freebsd/eal_interrupts.c | 12 ++++++++++++
 lib/librte_eal/include/rte_interrupts.h | 25 +++++++++++++++++++++++++
 lib/librte_eal/linux/eal_interrupts.c   | 12 ++++++++++++
 lib/librte_eal/version.map              |  1 +
 lib/librte_eal/windows/eal_interrupts.c |  8 ++++++++
 6 files changed, 59 insertions(+), 1 deletion(-)

-- 
2.17.2