From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A113A0598 for ; Tue, 21 Apr 2020 18:19:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F1267397D; Tue, 21 Apr 2020 18:19:22 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 47171397D for ; Tue, 21 Apr 2020 18:19:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587485961; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0t4JubNsRmoXBOb3OZzfQyFC4uxX8Y7pOcUSrAL+zu4=; b=gx8Im04J2HRXgw8YX/8hmvYn+diSu3saW0USVX3SGJZtYBVGuzCiVGXsVXbV57DMAETGq9 vC9avYirO3IHD0DAM84rJmoj9Kh/PndGxdVRLBX0XbZbcTixbhyWw/8NExiokSrO0manbL 2HchSg1E0cqUHTkyTnAPcofg5ABxTUc= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-130-jNvGrI-2Ptu17VePgUutJw-1; Tue, 21 Apr 2020 12:19:20 -0400 X-MC-Unique: jNvGrI-2Ptu17VePgUutJw-1 Received: by mail-vk1-f198.google.com with SMTP id r199so617730vkd.3 for ; Tue, 21 Apr 2020 09:19:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Huhg6tgL5yE9Ns6mjqwMda0h+mv+FA3p/wyU8Ul877I=; b=ogrcw05dSnh5QxXzbxmSGawCvE9D5iT9irBJIy3K5QxMoOESxI00dSuKIEAluJSDxZ wLn4n0qC/tiD80Jc0wsc6dW5L+vsS+mRy1sebMgzchmkXPc1Ucp14PQmSxf6K8KCnrIz uiEMhhvqC9lGiHR5WmoAXUkfGxaFY/J4r5KwDCkVWqn1WiE957FKr6pnV176YeZbiuUb +dvXdr4fN8moYmB1nP0W3s2Va3haby9/32ZyiYHBcVOKWH0k4azDhukxWmoy67H9CDoC yCxmFOtYYRf5VJ172iKVqiR5sXMuApvxV6BYacWXOCkLcGS3ZSdHDazs7XmJJw7A3wpH BzJA== X-Gm-Message-State: AGi0PuavlIAwNka82HvR6NmIf063s1ry8YNngBzBTV4o6fuhKkOuRiDQ c4+UeecHGWfGzvbrhn0no3LnQnguifbTHfsfRSiR2k8C+kTUSmbJbwOfFOotCop1wKCKpzUHrGe 5gEFudvLS/xNuV2luBzqpusM= X-Received: by 2002:ab0:5ad1:: with SMTP id x17mr12316533uae.126.1587485959566; Tue, 21 Apr 2020 09:19:19 -0700 (PDT) X-Google-Smtp-Source: APiQypL7EfZn7+l5mF6juLgVF1pQ7AzTR1ZHuGQNWQnKiMx8PDJLBml/jTtFWaGy6F7DUpwV6Bx27gFpIDI2BezdHaM= X-Received: by 2002:ab0:5ad1:: with SMTP id x17mr12316511uae.126.1587485959321; Tue, 21 Apr 2020 09:19:19 -0700 (PDT) MIME-Version: 1.0 References: <20200406222323.18609-1-michael.haeuptle@hpe.com> In-Reply-To: <20200406222323.18609-1-michael.haeuptle@hpe.com> From: David Marchand Date: Tue, 21 Apr 2020 18:19:08 +0200 Message-ID: To: Michael Haeuptle Cc: dev , Xiao Wang , dpdk stable X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Tue, Apr 7, 2020 at 12:23 AM Michael Haeuptle wrote: > > This fix treats a 0 return value from vfio_open_group_fd > in vfio_get_group_fd as the intended error condition instead > of putting an incorrect 0 file descriptor in the vfio_group table. > > Sometimes, the creation of device files in sysfs is not > instantaneously causing vfio_open_groupfd to return 0. > This has been observed when hot removing/adding multiple > NVMe devices (>=3D4). > > Fixes: 340b7bb8d583 ("vfio: extend data structure for multi container") > Cc: stable@dpdk.org > > Signed-off-by: Michael Haeuptle Please submit with a revision next time. Added back acks from first revision of the patch. Applied, thanks. --=20 David Marchand