# Re: \[PATCH V3 06/13\] block: add new field into 'struct bvec\_iter'

- From: Hannes Reinecke \<hare@suse.de\>
- Date: 2021-03-24 15:34:13 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/03/6401533
- Thread: https://ratatoskr.run/linux-block/2021/03/6401513/t.md

```text
On 3/24/21 1:19 PM, Ming Lei wrote:
> There is a hole at the end of 'struct bvec_iter', so put a new field
> here and we can save cookie returned from submit_bio() here for
> supporting bio based polling.
>
> This way can avoid to extend bio unnecessarily.
>
> Meantime add two helpers to get/set this field.
>
> Signed-off-by: Ming Lei <redacted>
> ---
>   block/blk.h          | 10 ++++++++++
>   include/linux/bvec.h |  8 ++++++++
>   2 files changed, 18 insertions(+)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
```
