Re: [PATCH 1/1] Net: qla3xxx, remove sleeping in atomic

From: David Miller
Date: Sat Jun 20 2009 - 04:21:23 EST


From: Jiri Slaby <jirislaby@xxxxxxxxx>
Date: Fri, 19 Jun 2009 17:13:32 +0200

> Hi, we've found this sleep-inside-spinlock.
>
> The fix below totally untested, please review carefully.
>
> --
>
> We cannot sleep in ql_reset_work under spinlock, unlock before sleep,
> relock after.
>
> Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>

This looks good. The spinlock is just required to be held
around the register accesses. It's going to drop the lock
as soon as the bits settle post-reset anyways and then the
driver goes off and modifies other state outside of the lock.

Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/