From: "D. Starke" <daniel.starke@siemens.com>
To: jirislaby@kernel.org
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
yhao016@ucr.edu
Subject: RE: BUG: sleeping function called from invalid context in __might_resched
Date: Thu, 20 Apr 2023 10:21:53 +0200 [thread overview]
Message-ID: <20230420082153.6711-1-daniel.starke@siemens.com> (raw)
In-Reply-To: <5a994a13-d1f2-87a8-09e4-a877e65ed166@kernel.org>
> Hmm, tty_operations::write() is documented as "not allowed to sleep".
> But vt's write was always sleeping :D. I wonder:
> 1) can gsmld be switched to a mutex?
> 2) what do other ldiscs do? FWIW n_tty does mutex, so allows ::write()
> to sleep.
There was already a failed attempt to solve this in the past. But this is
not an easy issue and involves the complete outgoing data flow of the
driver.
Link: https://lore.kernel.org/all/20221205190806.179857803@linuxfoundation.org/
Best regards,
Daniel Starke
prev parent reply other threads:[~2023-04-20 8:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 3:44 Yu Hao
2023-04-18 6:09 ` Greg KH
2023-04-18 6:51 ` Jiri Slaby
2023-04-20 8:21 ` D. Starke [this message]
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=20230420082153.6711-1-daniel.starke@siemens.com \
--to=daniel.starke@siemens.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yhao016@ucr.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®