[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] user_intr: a lock to protect main_intr_queue
From: |
Junling Ma |
Subject: |
Re: [PATCH] user_intr: a lock to protect main_intr_queue |
Date: |
Tue, 4 Aug 2020 17:11:06 -0700 |
In the next patch, we disallow deliver_user_intr from touching the queue, so we
do not need to lock it. In fact, by doing that, we prevent interrupts from
pulling the rug under our feet, so there is no need to do splhigh/splx in
irq_acknowledge and intr_thread.
Junling
> On Aug 4, 2020, at 4:58 PM, Samuel Thibault <samuel.thibault@gnu.org> wrote:
>
> Oh, btw, in queue_intr you also need to take the simple_lock which
> modifying the entry values.
>
> Samuel
>