From patchwork Mon Jun 20 05:11:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 12886990 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93451C433EF for ; Mon, 20 Jun 2022 05:11:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236117AbiFTFL2 (ORCPT ); Mon, 20 Jun 2022 01:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiFTFL1 (ORCPT ); Mon, 20 Jun 2022 01:11:27 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC7645FD1 for ; Sun, 19 Jun 2022 22:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655701886; 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; bh=KxKn6abF8VEXTTv8fBbGkXyKe1UQvimMwlU2U7O+wlA=; b=Cjk7IOxHo4hYEzHm9tyw3YIaKD8gSRxrPOtHvLM9t7C3nQjCcc9QGTc/b8sfBhv6qq+syD q6ZF5QkBU9yVVBB/ajt4cV84TgX7x6gs4OhXt2+rkKMpg2lZrehYpql1aQKMwgpD8EEsy+ qutKOEzyYSH8KNaFttDGkZbnYZKtSk0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-619-0oX7z3cqO2a1DGbkoNIIgQ-1; Mon, 20 Jun 2022 01:11:21 -0400 X-MC-Unique: 0oX7z3cqO2a1DGbkoNIIgQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3095F101AA45; Mon, 20 Jun 2022 05:11:21 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-16.pek2.redhat.com [10.72.12.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 05601C23DBF; Mon, 20 Jun 2022 05:11:17 +0000 (UTC) From: Jason Wang To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, jasowang@redhat.com Cc: davem@davemloft.net, kuba@kernel.org, erwan.yvin@stericsson.com Subject: [PATCH 0/3] Fixing races in probe/remove Date: Mon, 20 Jun 2022 13:11:12 +0800 Message-Id: <20220620051115.3142-1-jasowang@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi all: This series tries to fix races spotted during code review for caif_virtio in probe() and remove(). Compile test only. (I don't have setup to test them). Please review. Thanks Jason Wang (3): caif_virtio: remove virtqueue_disable_cb() in probe caif_virtio: fix the race between virtio_device_ready() and ndo_open() caif_virtio: fix the race between reset and netdev unregister drivers/net/caif/caif_virtio.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)