Tejun Heo
cb98fc8bb9
[BLOCK] Reimplement elevator switch
...
This patch reimplements elevator switch. This patch assumes generic
dispatch queue patchset is applied.
* Each request is tagged with REQ_ELVPRIV flag if it has its elevator
private data set.
* Requests which doesn't have REQ_ELVPRIV flag set never enter
iosched. They are always directly back inserted to dispatch queue.
Of course, elevator_put_req_fn is called only for requests which
have its REQ_ELVPRIV set.
* Request queue maintains the current number of requests which have
its elevator data set (elevator_set_req_fn called) in
q->rq->elvpriv.
* If a request queue has QUEUE_FLAG_BYPASS set, elevator private data
is not allocated for new requests.
To switch to another iosched, we set QUEUE_FLAG_BYPASS and wait until
elvpriv goes to zero; then, we attach the new iosched and clears
QUEUE_FLAG_BYPASS. New implementation is much simpler and main code
paths are less cluttered, IMHO.
Signed-off-by: Tejun Heo <htejun@gmail.com >
Signed-off-by: Jens Axboe <axboe@suse.de >
2005-10-28 08:48:12 +02:00
..
2005-09-19 19:57:36 -07:00
2005-09-08 22:46:00 +01:00
2005-10-10 21:21:10 -07:00
2005-10-10 21:23:28 -07:00
2005-09-19 15:34:40 -07:00
2005-09-13 08:22:31 -07:00
2005-09-09 16:39:12 -07:00
2005-10-03 14:13:38 -07:00
2005-10-14 17:10:12 -07:00
2005-10-17 17:03:57 -07:00
2005-10-08 15:00:57 -07:00
2005-10-04 13:22:01 -07:00
2005-10-08 15:00:57 -07:00
2005-09-10 10:06:21 -07:00
2005-10-28 08:48:12 +02:00
2005-10-19 23:11:33 -07:00
2005-10-08 15:00:57 -07:00
2005-09-10 10:16:27 -07:00
2005-10-08 15:00:57 -07:00
2005-10-16 00:17:33 -07:00
2005-10-08 15:00:57 -07:00
2005-09-12 08:48:08 -07:00
2005-09-18 00:19:32 -07:00
2005-09-22 07:58:24 -07:00
2005-10-08 15:00:57 -07:00
2005-09-12 10:50:58 -07:00
2005-10-28 08:44:37 +02:00
2005-09-13 08:22:32 -07:00
2005-09-09 13:57:55 -07:00
2005-09-13 08:22:32 -07:00
2005-09-10 10:06:25 -07:00
2005-09-09 14:03:47 -07:00
2005-10-28 08:15:30 +02:00
2005-10-08 15:00:57 -07:00
2005-10-20 09:02:07 -07:00
2005-09-17 11:50:02 -07:00
2005-10-23 16:38:39 -07:00
2005-09-27 15:59:43 -07:00
2005-09-19 15:41:28 -07:00
2005-09-10 11:32:45 +09:00
2005-10-03 14:35:55 -07:00
2005-09-09 13:57:55 -07:00
2005-09-09 20:14:47 -05:00
2005-09-12 10:49:58 -07:00
2005-09-07 16:57:48 -07:00
2005-10-03 14:13:38 -07:00
2005-10-08 15:00:57 -07:00
2005-09-10 10:06:36 -07:00
2005-09-17 11:50:02 -07:00
2005-09-13 08:22:28 -07:00
2005-10-08 14:53:31 -07:00
2005-09-28 09:10:47 -07:00
2005-10-08 15:00:57 -07:00
2005-09-07 18:26:54 -07:00
2005-09-07 16:57:59 -07:00
2005-09-16 02:39:01 -04:00
2005-09-07 16:57:59 -07:00
2005-10-17 08:59:10 -07:00
2005-09-08 14:57:23 -07:00
2005-10-08 15:00:57 -07:00
2005-09-21 10:11:55 -07:00
2005-10-01 10:54:47 -07:00
2005-09-27 15:23:16 -07:00
2005-10-08 15:00:57 -07:00
2005-10-12 15:12:21 -07:00
2005-10-08 15:00:57 -07:00
2005-10-24 22:16:38 +01:00
2005-09-08 14:57:24 -07:00
2005-09-09 15:43:46 -07:00
2005-09-13 08:22:31 -07:00
2005-10-08 15:00:57 -07:00
2005-10-08 15:00:57 -07:00
2005-10-17 15:27:58 -07:00
2005-09-09 13:57:54 -07:00
2005-09-22 22:17:33 -07:00
2005-09-10 10:06:35 -07:00
2005-10-10 16:16:33 -07:00
2005-10-08 15:00:57 -07:00
2005-09-08 16:04:41 +01:00
2005-09-08 14:47:12 -07:00
2005-10-08 15:00:57 -07:00
2005-10-08 15:00:57 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-10-08 15:00:57 -07:00
2005-10-10 08:36:46 -07:00
2005-10-08 15:00:57 -07:00
2005-09-21 10:12:18 -07:00
2005-09-22 04:30:44 -03:00
2005-10-08 15:00:57 -07:00
2005-09-18 00:18:32 -07:00
2005-09-10 10:06:36 -07:00
2005-09-09 14:03:48 -07:00
2005-09-09 13:57:58 -07:00
2005-10-08 15:00:57 -07:00
2005-09-08 16:22:48 -07:00
2005-09-08 16:23:04 -07:00
2005-09-12 12:23:52 -07:00
2005-09-13 08:22:32 -07:00
2005-09-09 13:57:49 -07:00
2005-10-08 15:00:57 -07:00
2005-09-10 10:06:25 -07:00