Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1208463 > unrolled thread
| Started by | Alexandre Courbot <gnurou@gmail.com> |
|---|---|
| First post | 2015-08-17 10:30 +0200 |
| Last post | 2015-08-17 10:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Deadlock in grgpio_irq_unmap() Alexandre Courbot <gnurou@gmail.com> - 2015-08-17 10:30 +0200
| From | Alexandre Courbot <gnurou@gmail.com> |
|---|---|
| Date | 2015-08-17 10:30 +0200 |
| Subject | Re: Deadlock in grgpio_irq_unmap() |
| Message-ID | <pYnXQ-1P5-9@gated-at.bofh.it> |
On Mon, Aug 3, 2015 at 1:15 AM, Alexey Khoroshilov <khoroshilov@ispras.ru> wrote: > Dear colleagus, > > grgpio_irq_unmap() code looks quite suspicious regarding usage of > priv->bgc.lock spinlock. > > It locks the spinlock in line 310: > spin_lock_irqsave(&priv->bgc.lock, flags); > and then it can call grgpio_set_imask() in line 317: > grgpio_set_imask(priv, i, 0); > > But grgpio_set_imask() unconditionally locks the spinlock by itself. Indeed, this looks plain wrong. I have sent a fix that moves the spinlock acquisition outside of grgpio_set_imask(). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web