# Re: \[PATCH 1/8\] block: split \_\_blkdev\_get

- From: Ming Lei \<hidden\>
- Date: 2021-05-19 09:21:50 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2021/05/6402721
- Thread: https://ratatoskr.run/linux-block/2021/05/6402626/t.md

```text
On Wed, May 12, 2021 at 08:18:49AM +0200, Christoph Hellwig wrote:
> Split __blkdev_get into one helper for the whole device, and one for
> opening partitions.  This removes the (bounded) recursion when opening
> a partition.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Nice cleanup, now the blkdev get code becomes more readable than before:

Reviewed-by: Ming Lei <redacted>

-- 
Ming

```
