Revision db3b5848ea6440968fcdd29b80514d0de044bb7c authored by Kiyoshi Ueda on 17 June 2005, 14:15:10 UTC, committed by Jens Axboe on 17 June 2005, 14:15:10 UTC
__cfq_get_queue(). __cfq_get_queue() finds an existing queue (struct cfq_queue) of the current process for the device and returns it. If it's not found, __cfq_get_queue() creates and returns a new one if __cfq_get_queue() is called with __GFP_WAIT flag, or __cfq_get_queue() returns NULL (this means that get_request() fails) if no __GFP_WAIT flag. On the other hand, in __make_request(), get_request() is called without __GFP_WAIT flag at the first time. Thus, the get_request() fails when there is no existing queue, typically when it's called for the first I/O request of the process to the device. Though it will be followed by get_request_wait() for general case, __make_request() will just end the I/O with an error (EWOULDBLOCK) when the request was for read-ahead. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
1 parent c374f12
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 3.1 KB |
Makefile | -rw-r--r-- | 429 bytes |
dir.c | -rw-r--r-- | 31.1 KB |
file.c | -rw-r--r-- | 6.7 KB |
getopt.c | -rw-r--r-- | 1.9 KB |
getopt.h | -rw-r--r-- | 367 bytes |
inode.c | -rw-r--r-- | 25.2 KB |
ioctl.c | -rw-r--r-- | 16.1 KB |
mmap.c | -rw-r--r-- | 2.9 KB |
ncplib_kernel.c | -rw-r--r-- | 33.6 KB |
ncplib_kernel.h | -rw-r--r-- | 7.8 KB |
ncpsign_kernel.c | -rw-r--r-- | 3.6 KB |
ncpsign_kernel.h | -rw-r--r-- | 727 bytes |
sock.c | -rw-r--r-- | 21.8 KB |
symlink.c | -rw-r--r-- | 4.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...