[PATCH] Remove struct request_list from struct request
It is always identical to &q->rq, and we only use it for detecting whether this request came out of our mempool or not. So replace it with an additional ->flags bit flag. Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
parent
c00895ab2f
commit
49171e5c6f
2 changed files with 4 additions and 9 deletions
|
@ -180,6 +180,7 @@ enum rq_flag_bits {
|
|||
__REQ_PREEMPT, /* set for "ide_preempt" requests */
|
||||
__REQ_ORDERED_COLOR, /* is before or after barrier */
|
||||
__REQ_RW_SYNC, /* request is sync (O_DIRECT) */
|
||||
__REQ_ALLOCED, /* request came from our alloc pool */
|
||||
__REQ_NR_BITS, /* stops here */
|
||||
};
|
||||
|
||||
|
@ -199,6 +200,7 @@ enum rq_flag_bits {
|
|||
#define REQ_PREEMPT (1 << __REQ_PREEMPT)
|
||||
#define REQ_ORDERED_COLOR (1 << __REQ_ORDERED_COLOR)
|
||||
#define REQ_RW_SYNC (1 << __REQ_RW_SYNC)
|
||||
#define REQ_ALLOCED (1 << __REQ_ALLOCED)
|
||||
|
||||
#define BLK_MAX_CDB 16
|
||||
|
||||
|
@ -264,7 +266,6 @@ struct request {
|
|||
|
||||
int ref_count;
|
||||
request_queue_t *q;
|
||||
struct request_list *rl;
|
||||
|
||||
void *special;
|
||||
char *buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue