# Re: \[PATCH V3 03/13\] block: add helper of blk\_create\_io\_context

- From: Ming Lei \<hidden\>
- Date: 2021-03-25 00:31:24 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/03/6401548
- Thread: https://ratatoskr.run/linux-block/2021/03/6401513/t.md

```text
On Wed, Mar 24, 2021 at 07:17:02PM +0100, Christoph Hellwig wrote:
> On Wed, Mar 24, 2021 at 08:19:17PM +0800, Ming Lei wrote:
> > Add one helper for creating io context and prepare for supporting
> > efficient bio based io poll.
> 
> Looking at what gets added later here I do not think this helper is
> a good idea.  Having a separate one for creating any needed poll-only
> context is a lot more clear.

The poll context actually depends on io_context, that is why I put them
all into one single helper.

thanks,
Ming

```
