diff options
| author | Jeff Dike <[email protected]> | 2007-02-10 01:44:16 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-02-11 10:51:23 -0800 |
| commit | 62f96cb01e8de7a5daee472e540f726db2801499 (patch) | |
| tree | 0ad14b68eeb8170669e8072e9e09782fc8dd4b79 /include/linux | |
| parent | 92b4202f38cf630350a9e1eb0ab23ca4fc5b687b (diff) | |
[PATCH] uml: add per-device queues and locks to ubd driver
Replace global queue and lock with per-device queues and locks. Mostly a
straightforward replacement of ubd_io_lock with dev->lock and ubd_queue with
dev->queue.
Complications -
There was no way to get a request struct (and queue) from the
structure sent to the io_thread, so a pointer to the request was
added. This is needed in ubd_handler in order to kick do_ubd_request
to process another request.
Queue initialization is moved from ubd_init to ubd_add.
Signed-off-by: Jeff Dike <[email protected]>
Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions