Skip to content

Commit

Permalink
block: export blk_{get,put}_queue()
Browse files Browse the repository at this point in the history
We need them in SCSI to fix a bug, but currently they are not
exported to modules. Export them.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed May 27, 2011
1 parent 700c4f3 commit d86e0e8
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 @@ -345,6 +345,7 @@ void blk_put_queue(struct request_queue *q)
{
kobject_put(&q->kobj);
}
EXPORT_SYMBOL(blk_put_queue);

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

return 1;
}
EXPORT_SYMBOL(blk_get_queue);

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

0 comments on commit d86e0e8

Please sign in to comment.