LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: valdis.kletnieks@vt.edu
To: Ivid Suvarna <ivid.suvarna@gmail.com>
Cc: Kernel development list <linux-kernel@vger.kernel.org>,
kernelnewbies@kernelnewbies.org
Subject: Re: Softlockup and Hardlockup sample test module
Date: Sun, 15 Apr 2018 15:12:11 -0400 [thread overview]
Message-ID: <90446.1523819531@turing-police.cc.vt.edu> (raw)
In-Reply-To: <CABXF_ACzu=+AKYqPyZwFzFw95KrczVEKaYifmOVuv=YhsvcTtQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
On Sun, 15 Apr 2018 13:17:27 +0530, Ivid Suvarna said:
> I had tried with the module where I put a busy loop inside spinlock
> but was not able to cause any lockups. Maybe this is because of SMP
> which schedule the job to other CPU. "How do I make a task to run on
> single CPU only?"
So you get a kernel thread that's taken a lock and will busy-loop and not free
it. What sort of lockup do you expect will be detected from this? Would the
results be any different if you didn't take a lock before busy-looping?
For bonus points - what additional things have to happen before a livelock
happens?
And before a deadlock happens?
[-- Attachment #2: Type: application/pgp-signature, Size: 486 bytes --]
next prev parent reply other threads:[~2018-04-15 19:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-15 7:47 Ivid Suvarna
2018-04-15 19:12 ` valdis.kletnieks [this message]
2018-04-15 22:19 ` Cong Wang
-- strict thread matches above, loose matches on Subject: below --
2018-04-15 5:41 Ivid Suvarna
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=90446.1523819531@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=ivid.suvarna@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: Softlockup and Hardlockup sample test module' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).