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 2D08FC43334 for ; Tue, 28 Jun 2022 12:06:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345365AbiF1MGo (ORCPT ); Tue, 28 Jun 2022 08:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242799AbiF1MGn (ORCPT ); Tue, 28 Jun 2022 08:06:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CECD3334A; Tue, 28 Jun 2022 05:06:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D1CD060F54; Tue, 28 Jun 2022 12:05:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51B71C3411D; Tue, 28 Jun 2022 12:05:38 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="f87+Ag8P" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1656417936; 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: in-reply-to:in-reply-to:references:references; bh=LOixUzeTmki9ATEVoZe9cxBT2jfJld9EW2WAc0Tq7RM=; b=f87+Ag8PMdM6OshA6cdM+pCANwGl+qs7HJGW1zI88p99tuM1yDfJT97kjLE9zzhIWAeREM ZkRUO1gimoWlk/VJ/62t1csWE9mQcU+hDYNh9r3O7f26yGqOL0Vpi6Au6DSDw4g291PJkN XxxjEYpDQblRONuuQdb4LpRUQN/Rlg4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id f0d6a814 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 28 Jun 2022 12:05:36 +0000 (UTC) Date: Tue, 28 Jun 2022 14:05:34 +0200 From: "Jason A. Donenfeld" To: Herbert Xu Cc: Gregory Erwin , Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , linux-wireless , LKML , Kalle Valo , Rui Salvaterra , stable Subject: Re: [PATCH v6] ath9k: sleep for less time when unregistering hwrng Message-ID: References: <20220627113749.564132-1-Jason@zx2c4.com> <20220627120735.611821-1-Jason@zx2c4.com> <87y1xib8pv.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi again, On Tue, Jun 28, 2022 at 12:55:57PM +0200, Jason A. Donenfeld wrote: > > Oh wait you're checking kthread_should_stop before the schedule > > call instead of afterwards, that would do it. > > Oh, that's a really good observation, thank you! Wait, no. I already am kthread_should_stop() it afterwards. That "continue" goes to the top of the loop, which checks it in the while() statement. So something else is amiss. I guess I'll investigate. Jason