Skip to content

Commit

Permalink
block: export blk_get/put_queue for blkback
Browse files Browse the repository at this point in the history
Impact: build fix

I'm not sure if blkback should be using these functions, but in the
meantime export them to allow blkback to be a module.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge authored and Konrad Rzeszutek Wilk committed Apr 14, 2011
1 parent 8270b45 commit 690f1b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ void blk_put_queue(struct request_queue *q)
{
kobject_put(&q->kobj);
}
EXPORT_SYMBOL_GPL(blk_put_queue);

/*
* Note: If a driver supplied the queue lock, it should not zap that lock
Expand Down Expand Up @@ -572,6 +573,7 @@ int blk_get_queue(struct request_queue *q)

return 1;
}
EXPORT_SYMBOL_GPL(blk_get_queue);

static inline void blk_free_request(struct request_queue *q, struct request *rq)
{
Expand Down

0 comments on commit 690f1b6

Please sign in to comment.