gxqing 发表于 2003-9-25 16:53:11

help:batch_requests的疑惑

在ll_rw_disk.c中有一个_init blk_dev_init(),它的功能就是对块设备的初始化,
其中static int batch_requests;在这个函数中计算得到,它的作用大家可能都知道了.
我现在不明白的是它没有保存在一个内核全局变量中,只在这儿计算一下有什么用,它是怎么发挥作用的呢?

Dragonfly 发表于 2003-9-26 05:08:40

which kernel you are discussing?

in 2.4.20 i only find an int batch_requests in struct request_queue

gxqing 发表于 2003-9-26 09:10:15

我用的2.4.18-14

Dragonfly 发表于 2003-9-26 21:39:12

that is hacked by redhat.

try to use vanilla kernel from kernel.org if possible

gxqing 发表于 2003-9-27 13:57:32

"that is hacked by redhat"--我不明白,能否详细解释一下 :neutral:

Dragonfly 发表于 2003-9-28 10:08:55

the 2.4.18-14 is modified by redhat in many many places. so it is quite different with the standard vanilla kernel.
页: [1]
查看完整版本: help:batch_requests的疑惑