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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E38DCC77B7C for ; Wed, 10 May 2023 11:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236931AbjEJL0a (ORCPT ); Wed, 10 May 2023 07:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236934AbjEJL0Y (ORCPT ); Wed, 10 May 2023 07:26:24 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D9A7D9E for ; Wed, 10 May 2023 04:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=qKTN3bkuHHaB9/MlmakcV7+e37PbUREzYlO6cAfSfc0=; t=1683717962; x=1684927562; b=TkP5tRn+8riZudlsD48YAhSL6r/XDbsPuAMyBT+WpzhqBQs LYwLUQKl7hkdNm9IiF0fBtvZtF2K6dDxXt10T9ca4mAo180A60K6HIV6f8mafST2EK1vnTTwHgDo/ bnfOKD6hRvXn8p2bqsPXVrE3WDAa5wO58Rbtotw2U6bx9EycPkMJTbDprCGrtSgvvgmhxfTsGCHfx TBrirwPuYqvbxG/Pfk8i7hzzU4LxdN3WKIPqe8OUA/srkbcrbIR4UDJOS0i+wj65D4ELBb1fAj9n1 B2GoAIt+m1qNVR92lcg3VoCHbc0gRBfifRaMxLcL437U+IJwcA0Rh2uCrqgIISVA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pwhxA-005N5u-28; Wed, 10 May 2023 13:25:52 +0200 Message-ID: Subject: Re: wireless locking simplifications From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Benjamin Berg Date: Wed, 10 May 2023 13:25:51 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2023-05-05 at 23:05 +0200, Johannes Berg wrote: >=20 > + /* FIXME: can this be done better? */ \ > + WARN_ON_ONCE(strncmp(current->comm, "kworker/", 8)); \ Ah, also, is there a better way to do this? Not strictly needed, but some kind of debug check that you're calling the right thing would be nice. (Unless we do the user mutex to workqueue thing :) ) johannes