Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2215916ioo; Mon, 23 May 2022 12:56:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYgjAtdUfS71ZYom+dHZfocA1rEaVj5MAgkwme1Kw4Vgja5IrvVxdss3nbf/ivwKoHBMLM X-Received: by 2002:a05:6402:329d:b0:42b:4f0d:b778 with SMTP id f29-20020a056402329d00b0042b4f0db778mr11669298eda.206.1653335816907; Mon, 23 May 2022 12:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653335816; cv=none; d=google.com; s=arc-20160816; b=fjlNHEWJ6xvepSFWk6xAi5gJIKr1etGcUjYRb63wHle7j0BPGa4g6MCR9HF+WSqmxG /XuOydzj8Ngz2DeDkoYilpgihvI5qusStAwGzbl6pNxC7LoiQF1DqPlo1mjl50E0E8su DMq2xWBX9n03q/uxhVgIU5oEBIzf3OfWRQzbZOLvZ/AJyfUNpx7Z5HhdEpoY3Y2BP5SJ S5knB864MS5szqHjRNZ4C6mY9C37XeFZ0xiG2PgtpEdB6S65x3BRypltHLn6t3HxcUu4 oyM9JIihH/nv2996V5DKlPwACrGGNk9QoBNbFHyLp6c7NyaVQhkukCXmYm333yzHWjt1 3okQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Vr6T/UqgVGLQWoul1vnNoytTWzJsPkn14WICohkLY7I=; b=lmYEV6iHURKYhgmj3I1XEQfGzqaeHg4r7zJL2OEwAQN5/zJOIdkCrqULLMeZ2CXyLD u0/rhq5Cn8EzjsK3ZIOQFc2NJD5ZrhIwoa11KgIqLSEuUKGETKMj6iqwTf/xLCrntQJs H7Ko9lCCdEgargfUG0RsWbQqYAYlvd+UB49sy5bcC+P4osHZRSaVFqeaSu9/cnkyqOR0 WAlVHgFsasa8gAxZ+S7AWurTnxSsKJ3WV+h+s83c9zaQ5MykxphWbZGIU97pp3Lgl2Zi DJUlpKyTD2J/U1XL3AxbzpZNgmYFGXhD2zHmhfhs0fuSC4H1SuLBn97cZDhfqREKx51B biaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fs0S3Mso; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a170906344d00b006f405294f68si15249046ejb.61.2022.05.23.12.56.33; Mon, 23 May 2022 12:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fs0S3Mso; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbiEWTn0 (ORCPT + 67 others); Mon, 23 May 2022 15:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234729AbiEWTnA (ORCPT ); Mon, 23 May 2022 15:43:00 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B672B220 for ; Mon, 23 May 2022 12:42:59 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id v66so19051709oib.3 for ; Mon, 23 May 2022 12:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vr6T/UqgVGLQWoul1vnNoytTWzJsPkn14WICohkLY7I=; b=Fs0S3Msok1ksTRe7NGFi2Ry+axura59LsvHOsYFwgudYlyVCr2tTvaiG818YWZuDf0 IZZwL+wqiL6MtCfFD0gPzV0afDz9zib5f4lVh48rMdFUVgj+K3yQKYmuvHWZ98c1Knvk jDLi+BFuargstaoHS5pNBPjYIKTiAaoOaD3CI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vr6T/UqgVGLQWoul1vnNoytTWzJsPkn14WICohkLY7I=; b=kP/bZFeVYzk/qzwLNQsSfWnH5KiBZQODp1cVsiOUlCelp0MjouTCpWExgvSGfGPEkU MdfW26/st9MOOdD5pRsf+EP0q61tB9nb6XRmiTG2y8bPCfZdMjdyJ6wgubFVZ+5xFDJc v/Z4CEpz1AG9ywBPd9YWQcwrfzLs096DQRbe/dohWuoqmAjMjN0NCtd3+CZWQGAy+taR 4FFb/YHipuqyk/nGQK8GuP/JdUFu8Fq31dGszmSX5n5M0NfaOt2qNlYljmZbqmaY6Rp2 MD0tsVTbiiOPc8SHFoBBv+iwNR9tJFP7/2XVcHbRLttZIG+36tGup7cEcRdUZnrxXYh8 62/A== X-Gm-Message-State: AOAM532LAOiUv9ZX+NP9Q0kujJCpn4NnSiRM9BRbzYSjgVOGxfLiYvs6 JYdP635UEFeTtf1w1lKTj+y1mHp9aHD51g== X-Received: by 2002:a05:6808:238f:b0:326:d4e1:a4b6 with SMTP id bp15-20020a056808238f00b00326d4e1a4b6mr355086oib.241.1653334978720; Mon, 23 May 2022 12:42:58 -0700 (PDT) Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com. [209.85.167.181]) by smtp.gmail.com with ESMTPSA id g18-20020a056870c15200b000f17905320esm4364143oad.13.2022.05.23.12.42.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 12:42:56 -0700 (PDT) Received: by mail-oi1-f181.google.com with SMTP id y66so12993195oia.1 for ; Mon, 23 May 2022 12:42:55 -0700 (PDT) X-Received: by 2002:a05:6808:140c:b0:326:cd8f:eb71 with SMTP id w12-20020a056808140c00b00326cd8feb71mr341566oiv.257.1653334975556; Mon, 23 May 2022 12:42:55 -0700 (PDT) MIME-Version: 1.0 References: <20220523052810.24767-1-duoming@zju.edu.cn> <87o7zoxrdf.fsf@email.froward.int.ebiederm.org> <6a270950.2c659.180f1a46e8c.Coremail.duoming@zju.edu.cn> In-Reply-To: <6a270950.2c659.180f1a46e8c.Coremail.duoming@zju.edu.cn> From: Brian Norris Date: Mon, 23 May 2022 12:42:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] mwifiex: fix sleep in atomic context bugs caused by dev_coredumpv To: Duoming Zhou Cc: "Eric W. Biederman" , linux-wireless , amit karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , kvalo@kernel.org, "David S. Miller" , edumazet@google.com, Jakub Kicinski , Paolo Abeni , "" , Linux Kernel , Greg Kroah-Hartman , "Rafael J. Wysocki" , Johannes Berg Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org (I think people generally agreed on this approach, but please submit a new series, with separate patches) On Mon, May 23, 2022 at 12:27 PM wrote: > What's more, I move the operations that may sleep into a work item and use > schedule_work() to call a kernel thread to do the operations that may sleep. You end up with a timer that just exists to kick a work item. Eric suggested you just use a delayed_work, and then you don't need both a timer and a work struct. Brian