Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
blk-timeout.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/fault-inject.h>
#include "blk.h"

Go to the source code of this file.

Functions

void blk_delete_timer (struct request *req)
 
void blk_rq_timed_out_timer (unsigned long data)
 
void blk_abort_request (struct request *req)
 
 EXPORT_SYMBOL_GPL (blk_abort_request)
 
void blk_add_timer (struct request *req)
 

Function Documentation

void blk_abort_request ( struct request req)

blk_abort_request – Request request recovery for the specified command : pointer to the request of interest

This function requests that the block layer start recovery for the request by deleting the timer and calling the q's timeout function. LLDDs who implement their own error recovery MAY ignore the timeout event if they generated blk_abort_req. Must hold queue lock.

Definition at line 150 of file blk-timeout.c.

void blk_add_timer ( struct request req)

blk_add_timer - Start timeout timer for a single request : request that is about to start running.

Notes: Each request has its own timer, and as it is added to the queue, we set up the timer. When the request completes, we cancel the timer.

Definition at line 167 of file blk-timeout.c.

void blk_delete_timer ( struct request req)

Definition at line 77 of file blk-timeout.c.

void blk_rq_timed_out_timer ( unsigned long  data)

Definition at line 110 of file blk-timeout.c.

EXPORT_SYMBOL_GPL ( blk_abort_request  )