Commit 5fe41502 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] small block bits

o  Add sense_len to request, so scsi_ioctl knows how much sense data
   was transferred.

o Add sg_timeout and sg_reserved to queue, we can't have these global...

o And finally kill QUEUE_NR_REQUESTS, it hasn't been used in a while.
parent 54952b34
...@@ -66,7 +66,10 @@ struct request { ...@@ -66,7 +66,10 @@ struct request {
/* For packet commands */ /* For packet commands */
unsigned int data_len; unsigned int data_len;
void *data, *sense; void *data;
unsigned int sense_len;
void *sense;
unsigned int timeout; unsigned int timeout;
struct completion *waiting; struct completion *waiting;
...@@ -152,12 +155,6 @@ struct blk_queue_tag { ...@@ -152,12 +155,6 @@ struct blk_queue_tag {
int max_depth; int max_depth;
}; };
/*
* Default nr free requests per queue, ll_rw_blk will scale it down
* according to available RAM at init time
*/
#define QUEUE_NR_REQUESTS 8192
struct request_queue struct request_queue
{ {
/* /*
...@@ -222,6 +219,12 @@ struct request_queue ...@@ -222,6 +219,12 @@ struct request_queue
wait_queue_head_t queue_wait; wait_queue_head_t queue_wait;
struct blk_queue_tag *queue_tags; struct blk_queue_tag *queue_tags;
/*
* sg stuff
*/
unsigned int sg_timeout;
unsigned int sg_reserved_size;
}; };
#define RQ_INACTIVE (-1) #define RQ_INACTIVE (-1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment