On Tue, Mar 31, 2009 at 2:03 PM, nidhi mittal <[email protected]> wrote:
> hi
> i have written a very simple ram based block device driver
> processing request asynchronously
>
> wherein
> in request function -- dequeue the req from req queue and add it to the
> linked list
> then in the function triggered by timer
> handle each req from the linked list
> then blk_end_requets is called upon completion of request .
>
>

>                 blkdev_dequeue_request(req);
>                 my_req = (struct filtered_request*)kzalloc(sizeof(struct
> filtered_request),GFP_KERNEL);

In request function, you should use GFP_ATOMIC

Thanks
-Lal

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to