Messages in this thread |  | | Subject | Re: Locking question, is this cool? | Date | Tue, 31 Oct 2000 19:01:30 +0000 (GMT) | From | Alan Cox <> |
| |
> At line 1073 of ../drivers/char/i2lib.c (2.4.0-test9) we find: > > WRITE_LOCK_IRQSAVE(... > > this is followed by: > > COPY_FROM_USER(... > > It seems to me that this could result in a page fault with interrupts > off. Is this ok?
It wont do what you want - it'll re-enable irqs and may then deadlock. It might need to copy the buffer to a temporary space then take the lock > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |