From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1090357D0E for ; Thu, 11 Jun 2026 13:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781185099; cv=none; b=YKzLloZcpsFdz5XpC3+DwbVRMIpIjSMNQwBjIOdhXrB9qg/NqIjH/umpbcKCw3JKsZRQob6qqPZ+xIZ8ZjUUMlD8KF8NgD+xYbkd4VP9l/J40B+awQo6NEkx5so6lhmV3r+utPwGp+r6arwMXKcHwvlDkAsQxXnwIuKAJo8meGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781185099; c=relaxed/simple; bh=jR+U9F+ZVzQNuUXFATO2mqm4H3w9W1LvGTuSLBLl6ig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NeNwzHiYR6JVQ4AzFGop2BhxeJrGifx0F68oG3V1DxYstm1CeqlmMrGIRtH0erxm7kzLg3nzpFAGXXkD+TLZ+rRUe1HitNsks1o4UZnrFJDmDmDrNGCCapxkiyrd/KPpzjBzzAwbZFO+6HmUCvazLaf7zhltAJa+bwifFiZ3Ou4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=RMAQZTAw; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RMAQZTAw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781185097; 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=r6XmyhZJiDhXMzKbioZAprILIuTOaFvPD+o8MSk9uyE=; b=RMAQZTAwZZ52suzS5u4Wskf8zJAVBVcRlZpYHu3w/4iMo1ZwJx/aA1uTiRP30+hQXZahJQ lTCLaiWM+GIMSLYeMDKYF4kuVlUYs81DYr2JlexwkqG0P01lGZmbjqlg+lEAqeVA11Y+4Y +14nv+4OX+zIGfIpCIS6y32fWKsxScg= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-388-13yhVmwnOye_qzhbiKSE1A-1; Thu, 11 Jun 2026 09:38:15 -0400 X-MC-Unique: 13yhVmwnOye_qzhbiKSE1A-1 X-Mimecast-MFC-AGG-ID: 13yhVmwnOye_qzhbiKSE1A_1781185093 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3EC56188EB54; Thu, 11 Jun 2026 13:38:13 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.44.50.90]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D2367180065F; Thu, 11 Jun 2026 13:38:07 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: "Michael S . Tsirkin" Cc: Maxime Coquelin , Stefano Garzarella , Jason Wang , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Xuan Zhuo , Laurent Vivier , virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, Cindy Lu , Yongji Xie Subject: [PATCH 0/2] Fix lock errors in VDUSE suspend feature Date: Thu, 11 Jun 2026 15:38:04 +0200 Message-ID: <20260611133806.198402-1-eperezma@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Fix wrong ordering at taking semaphore after spinlock and convert the spinlock take and release into guards, so they are not lost after a return. This series goes on top of https://lore.kernel.org/lkml/20260610083452.477759-1-eperezma@redhat.com/ --- It would be great if these can be squashed. Eugenio Pérez (2): vduse: fix not releasing taken semaphore in vduse_dev_queue_irq_work vduse: not take the device semaphore while holding vq spinlock drivers/vdpa/vdpa_user/vduse_dev.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) -- 2.54.0