Messages in this thread | | | From | "Stephen C. Tweedie" <> | Date | Tue, 14 Sep 1999 17:08:26 +0100 (BST) | Subject | Re: spin_lock and linux philosophy question... |
| |
Hi,
On Mon, 13 Sep 1999 07:01:41 -0700 (PDT), Robert Dinse <nanook@eskimo.com> said:
> Are there ever cases where you lock outside of interrupts but > expect code inside of an interrupt handler to unlock? Or > conversely, cases where you lock during an interrupt, do some > preliminary work, then return expecting code outside to unlock?
For IO it is very common: we lock a page or a buffer_head before submitting the IO, and the interrupt unlocks it afterwards. This is always the blocking, wait-queue based type of locking, though: we never do this with spinlocks.
--Stephen
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |