From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 B34DDCA9EC0 for ; Mon, 28 Oct 2019 15:33:53 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 87444208C0 for ; Mon, 28 Oct 2019 15:33:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 87444208C0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=stgolabs.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 32EC587143; Mon, 28 Oct 2019 15:33:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NpdOm2stiwpe; Mon, 28 Oct 2019 15:33:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7FDE086887; Mon, 28 Oct 2019 15:33:51 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 04C601BF35C for ; Mon, 28 Oct 2019 15:33:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EE852204A7 for ; Mon, 28 Oct 2019 15:33:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xyO20P9O9hY1 for ; Mon, 28 Oct 2019 15:33:49 +0000 (UTC) X-Greylist: delayed 00:11:14 by SQLgrey-1.7.6 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by silver.osuosl.org (Postfix) with ESMTPS id 11002204A2 for ; Mon, 28 Oct 2019 15:33:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B320CB20E; Mon, 28 Oct 2019 15:22:32 +0000 (UTC) Date: Mon, 28 Oct 2019 08:21:08 -0700 From: Davidlohr Bueso To: Stefan Wahren Subject: Re: [PATCH] staging: vc04_services: replace g_free_fragments_mutex with spinlock Message-ID: <20191028152108.bjliafudxn3llysv@linux-p48b> References: <20191027221530.12080-1-dave@stgolabs.net> <576df522-f012-9dd1-9dcc-b7e444e82ac6@gmx.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <576df522-f012-9dd1-9dcc-b7e444e82ac6@gmx.net> User-Agent: NeoMutt/20180716 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, eric@anholt.net, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" On Mon, 28 Oct 2019, Stefan Wahren wrote: >Hi Davidlohr, > >Am 27.10.19 um 23:15 schrieb Davidlohr Bueso: >> There seems no need to be using a semaphore, or a sleeping lock >> in the first place: critical region is extremely short, does not >> call into any blocking calls and furthermore lock and unlocking >> operations occur in the same context. >> >> Get rid of another semaphore user by replacing it with a spinlock. >> >> Signed-off-by: Davidlohr Bueso >> --- >> This is in an effort to further reduce semaphore users in the kernel. >> >thanks for this. Could please also send this to devel@driverdev.osuosl.org? Ccing. > >I only need to know, has this been tested on the Raspberry Pi? No testing has been done, I have no hardware to test this. Thanks, Davidlohr _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel