void blk_cleanup_queue (request_queue_t * q);
blk_cleanup_queue is the pair to blk_init_queue. It should be called when a request queue is being released; typically when a block device is being de-registered. Currently, its primary task it to free all the &struct request structures that were allocated to the queue.
Hopefully the low level driver will have finished any outstanding requests first...