mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[PATCH] fix sysfs interaction and lifetime rules handling for queues
This commit is contained in:
parent
1312f40e11
commit
483f4afc42
2 changed files with 61 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue