diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-03-18 18:34:37 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-03-18 18:34:37 -0500 |
commit | 483f4afc421435b7cfe5e88f74eea0b73a476d75 (patch) | |
tree | 9a3bbcf8ae83c5edb9ab1f9e98333d6f5673211b /include/linux/blkdev.h | |
parent | 1312f40e11c57edb5c3250f1b782cef8e3efea82 (diff) | |
download | lwn-483f4afc421435b7cfe5e88f74eea0b73a476d75.tar.gz lwn-483f4afc421435b7cfe5e88f74eea0b73a476d75.zip |
[PATCH] fix sysfs interaction and lifetime rules handling for queues
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 80518f703538..56bb6a4e15f3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -406,8 +406,6 @@ struct request_queue struct blk_queue_tag *queue_tags; - atomic_t refcnt; - unsigned int nr_sorted; unsigned int in_flight; @@ -426,6 +424,8 @@ struct request_queue struct request pre_flush_rq, bar_rq, post_flush_rq; struct request *orig_bar_rq; unsigned int bi_size; + + struct mutex sysfs_lock; }; #define RQ_INACTIVE (-1) @@ -727,7 +727,7 @@ extern long nr_blockdev_pages(void); int blk_get_queue(request_queue_t *); request_queue_t *blk_alloc_queue(gfp_t); request_queue_t *blk_alloc_queue_node(gfp_t, int); -#define blk_put_queue(q) blk_cleanup_queue((q)) +extern void blk_put_queue(request_queue_t *); /* * tag stuff |