summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2003-05-26 22:21:06 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2003-05-26 22:21:06 -0700
commitb88ac404cfa31d66f4c888af5e9362d4a244021a (patch)
tree352e954b89958dd32b2a7de4cac57064300adcd3 /include/linux/blkdev.h
parentdccd87acc33583c8ee8dd0d2780694540561bb66 (diff)
[PATCH] blk layer tag resize
This allows drivers to resize their tag depth at run-time.
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index aa38c5f33c21..03691501d68f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -179,7 +179,8 @@ struct blk_queue_tag {
unsigned long *tag_map; /* bit map of free/busy tags */
struct list_head busy_list; /* fifo list of busy tags */
int busy; /* current depth */
- int max_depth;
+ int max_depth; /* what we will send to device */
+ int real_max_depth; /* what the array can hold */
};
struct request_queue
@@ -452,6 +453,7 @@ extern struct request *blk_queue_find_tag(request_queue_t *, int);
extern void blk_queue_end_tag(request_queue_t *, struct request *);
extern int blk_queue_init_tags(request_queue_t *, int);
extern void blk_queue_free_tags(request_queue_t *);
+extern int blk_queue_resize_tags(request_queue_t *, int);
extern void blk_queue_invalidate_tags(request_queue_t *);
extern void blk_congestion_wait(int rw, long timeout);