# Re: simplify gendisk and request\_queue allocation for bio based drivers

- From: Jens Axboe \<axboe@kernel.dk\>
- Date: 2021-06-01 13:48:14 
- List: linux-bcache
- Page: https://ratatoskr.run/linux-bcache/2021/06/6403106
- Thread: https://ratatoskr.run/linux-block/2021/05/6402806/t.md

```text
On 5/20/21 11:50 PM, Christoph Hellwig wrote:
> Hi all,
> 
> this series is the first part of cleaning up lifetimes and allocation of
> the gendisk and request_queue structure.  It adds a new interface to
> allocate the disk and queue together for bio based drivers, and a helper
> for cleanup/free them when a driver is unloaded or a device is removed.
> 
> Together this removes the need to treat the gendisk and request_queue
> as separate entities for bio based drivers.

Applied, thanks.

-- 
Jens Axboe

```
