All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zheyu Ma <zheyuma97@gmail.com>
To: jdelvare@suse.com, linux@roeck-us.net
Cc: linux-hwmon@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [BUG] hwmon: (adt7470) warning when removing the module
Date: Thu, 7 Apr 2022 11:17:15 +0800	[thread overview]
Message-ID: <CAMhUBjmTObCwaF=enLNkRSzxqSzK6KdkHf+4cWo5fqOO7B40iw@mail.gmail.com> (raw)

I found a bug when removing the adt7470 module.

The following log can reveal it:

[   18.459479] ------------[ cut here ]------------
[   18.459852] do not call blocking ops when !TASK_RUNNING; state=1
set at [<ffffffffa006052b>] adt7470_update_thread+0x7b/0x130 [adt7470]
[   18.460857] WARNING: CPU: 7 PID: 365 at kernel/sched/core.c:9660
__might_sleep+0x96/0xb0
[   18.461523] Modules linked in: adt7470(-)
[   18.464568] RIP: 0010:__might_sleep+0x96/0xb0
[   18.472577] Call Trace:
[   18.472778]  <TASK>
[   18.472957]  exit_signals+0x2f/0x3b0
[   18.473251]  do_exit+0xcd/0x18c0
[   18.473534]  ? __mutex_unlock_slowpath+0x1b8/0x740
[   18.473927]  kthread_exit+0x42/0x60
[   18.474212]  ? adt7470_detect+0x140/0x140 [adt7470]
[   18.474622]  kthread+0x272/0x2e0
[   18.474885]  ? adt7470_detect+0x140/0x140 [adt7470]
[   18.475277]  ? kthread_blkcg+0xa0/0xa0
[   18.475601]  ret_from_fork+0x22/0x30
[   18.475901]  </TASK>

Regards,
Zheyu Ma

             reply	other threads:[~2022-04-07  3:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07  3:17 Zheyu Ma [this message]
2022-04-07  5:01 ` [BUG] hwmon: (adt7470) warning when removing the module Armin Wolf
2022-04-07  9:23   ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMhUBjmTObCwaF=enLNkRSzxqSzK6KdkHf+4cWo5fqOO7B40iw@mail.gmail.com' \
    --to=zheyuma97@gmail.com \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.