patch-2.4.13 linux/drivers/block/ll_rw_blk.c
Next file: linux/drivers/block/loop.c
Previous file: linux/drivers/block/genhd.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Sat Oct 13 10:30:30 2001
- Orig file:
v2.4.12/linux/drivers/block/ll_rw_blk.c
- Orig date:
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.12/linux/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
@@ -149,8 +149,8 @@
return 0;
do {
- rq = list_entry(head->next, struct request, table);
- list_del(&rq->table);
+ rq = list_entry(head->next, struct request, queue);
+ list_del(&rq->queue);
kmem_cache_free(request_cachep, rq);
i++;
} while (!list_empty(head));
@@ -349,7 +349,7 @@
}
memset(rq, 0, sizeof(struct request));
rq->rq_status = RQ_INACTIVE;
- list_add(&rq->table, &q->request_freelist[i & 1]);
+ list_add(&rq->queue, &q->request_freelist[i & 1]);
}
init_waitqueue_head(&q->wait_for_request);
@@ -415,7 +415,7 @@
q->head_active = 1;
}
-#define blkdev_free_rq(list) list_entry((list)->next, struct request, table);
+#define blkdev_free_rq(list) list_entry((list)->next, struct request, queue);
/*
* Get a free request. io_request_lock must be held and interrupts
* disabled on the way in.
@@ -426,7 +426,7 @@
if (!list_empty(&q->request_freelist[rw])) {
rq = blkdev_free_rq(&q->request_freelist[rw]);
- list_del(&rq->table);
+ list_del(&rq->queue);
rq->rq_status = RQ_ACTIVE;
rq->special = NULL;
rq->q = q;
@@ -570,7 +570,7 @@
/*
* Add to pending free list and batch wakeups
*/
- list_add(&req->table, &q->pending_freelist[rw]);
+ list_add(&req->queue, &q->pending_freelist[rw]);
if (++q->pending_free[rw] >= batch_requests) {
int wake_up = q->pending_free[rw];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)