Re: Disabling interrupts before block device request call

From: Alexandr Andreev (andreev@niisi.msk.ru)
Date: Mon May 28 2001 - 14:24:14 EST


Jens Axboe wrote

>
>Even with dropping io_request_lock, it's not recommended to sleep inside
>the request_fn. WIth plugging, you are basically preventing the other
>plugged queues from being run until you return.
>
>You could use a timer or similar to call you on a specified timeout
>instead.
>
Does it mean, that if i need timer interrupts in my block device driver,
i need to do sti() instead of unlock io_request_lock? Is there any
common rule for device drivers in such case?

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



This archive was generated by hypermail 2b29 : Thu May 31 2001 - 21:00:36 EST