Export the flush_queue function for use by drivers.