* the rq_timed_out_fn for block device(hd)
@ 2013-04-30 11:24 remaper
0 siblings, 0 replies; only message in thread
From: remaper @ 2013-04-30 11:24 UTC (permalink / raw)
To: linux-fsdevel, linux-kernel
my kernel version: linux 2.6.34.14
in block/blk-core.c file, blk_alloc_queue_node() function:
struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
{
...
setup_timer(&q->timeout, blk_rq_timed_out_timer, (unsigned long) q);
...
}
when bio request timeout, execute blk_rq_timed_out_timer() function, for each req in q->request_list, execute blk_rq_timed_out() function, this two function are defined in blk-timeout.c file:
static void blk_rq_timed_out(struct request *req)
{
...
ret = q->rq_timed_out_fn(req);
switch (ret) {
...
}
}
i can't find where the ->rq_timed_out_fn defined for block device, such as drivers/block/hd.c
but i can find that the ->rq_timed_out_fn for scsi device, in drivers/scsi/scsi_transport_fc.c, line 3965ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-30 11:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30 11:24 the rq_timed_out_fn for block device(hd) remaper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox