Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09960C433E0 for ; Thu, 9 Jul 2020 12:09:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CC2132074B for ; Thu, 9 Jul 2020 12:09:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iHqb5ND/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbgGIMJb (ORCPT ); Thu, 9 Jul 2020 08:09:31 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:38777 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726802AbgGIMJ0 (ORCPT ); Thu, 9 Jul 2020 08:09:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594296564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iX+mRBFgjXW8dFY01A40DV3EI9lIkj/WmW1EF4ihD2U=; b=iHqb5ND/Md901R9v4JSH3xWFvgyRStbd6fs/lHRfhZlbXsf5WKCvBSSdxoN39BAiG+fpL5 LMaJFlHUzGak2AqvxeJ4IyBTAKGjeEJHM3vAHPxEF+7EjdTSPQsXtJU6P/mr0TE6D+HWq5 v3m2tdCcoYHjKToGn4nFF2uXlayyuow= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-425-PB9kmOEIN2SXE1vypGCtDw-1; Thu, 09 Jul 2020 08:09:23 -0400 X-MC-Unique: PB9kmOEIN2SXE1vypGCtDw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2B7988912F1; Thu, 9 Jul 2020 12:09:22 +0000 (UTC) Received: from x1.localdomain.com (ovpn-115-29.ams2.redhat.com [10.36.115.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7ECD11001901; Thu, 9 Jul 2020 12:09:20 +0000 (UTC) From: Hans de Goede To: Arnd Bergmann , Greg Kroah-Hartman Cc: Hans de Goede , linux-kernel@vger.kernel.org Subject: [PATCH resend v2 8/8] virt: vbox: Fix some comments which talk about the "session spinlock" Date: Thu, 9 Jul 2020 14:08:58 +0200 Message-Id: <20200709120858.63928-9-hdegoede@redhat.com> In-Reply-To: <20200709120858.63928-1-hdegoede@redhat.com> References: <20200709120858.63928-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The session lock is a mutex, not a spinlock, fix the comments to match. Acked-by: Arnd Bergmann Signed-off-by: Hans de Goede --- drivers/virt/vboxguest/vboxguest_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virt/vboxguest/vboxguest_core.c b/drivers/virt/vboxguest/vboxguest_core.c index c5dfcd42fd07..0b43efddea22 100644 --- a/drivers/virt/vboxguest/vboxguest_core.c +++ b/drivers/virt/vboxguest/vboxguest_core.c @@ -559,7 +559,7 @@ static int vbg_reset_host_event_filter(struct vbg_dev *gdev, * Changes the event filter mask for the given session. * * This is called in response to VBG_IOCTL_CHANGE_FILTER_MASK as well as to - * do session cleanup. Takes the session spinlock. + * do session cleanup. Takes the session mutex. * * Return: 0 or negative errno value. * @gdev: The Guest extension device. @@ -811,7 +811,7 @@ static int vbg_acquire_session_capabilities(struct vbg_dev *gdev, } /** - * Sets the guest capabilities for a session. Takes the session spinlock. + * Sets the guest capabilities for a session. Takes the session mutex. * Return: 0 or negative errno value. * @gdev: The Guest extension device. * @session: The session. -- 2.26.2