Age | Commit message (Collapse) | Author |
|
Some functions such as blk_plug_device checks whether irqs are disabled.
So I need to fake irq diable in spin_lock_irq and spin_lock_irqsave.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It's necessary when we do it in the user space, as that the CPU switches
to other processes and the result is too imprecise.
|
|
It's not very precise to implement udelay and ndelay with loops
in the user space, but should be enough.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In order to avoid dead lock caused by spin_lock_irq or
spin_lock_irqsave, I remove irq disabling in them. It's really
unnecessary to do spin_lock_irq and spin_lock_irqsave any more because
interrupt isn't handled in a real interrupt context.
|
|
|
|
This is a temporary solution. I should implement a correct mechanism to
simulate cli/sti.
|
|
|
|
|
|
|
|
don't set `tail` in sk_buff.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|