kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: vishu.kernel@gmail.com (Vishwas Srivastava)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Can interrupt be missed between interrupt disable/enable window?
Date: Mon, 21 Mar 2016 12:41:54 +0530	[thread overview]
Message-ID: <CAGM3cC7jsm=9XhZ0xZDLGBLBV_UsSM5TOGA95xRbdhsT7=-KTg@mail.gmail.com> (raw)

Kernel code heavily uses the spinlock primitives
spin_lock_irqsave/restore plus local interrupt disabling/ enabling, all
across the code.
Is there a possibility that the interrupts might get
missed in this small window

disable interrupts
.............
.............                        <<<<<<<<<<<----------------------
interrupts is trigerred here

enable interrupts


specially when the irq
affinity has been set to the same core on which the
above mentioned code (disabling / enabling the irq's)
runs?
How the linux deals with this kind of scenario?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160321/7c643276/attachment.html 

             reply	other threads:[~2016-03-21  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21  7:11 Vishwas Srivastava [this message]
2016-03-21  8:14 ` Can interrupt be missed between interrupt disable/enable window? Chetan Nanda
2016-03-21  9:11 ` Crazyiop

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='CAGM3cC7jsm=9XhZ0xZDLGBLBV_UsSM5TOGA95xRbdhsT7=-KTg@mail.gmail.com' \
    --to=vishu.kernel@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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;
as well as URLs for NNTP newsgroup(s).