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
Also in
dm-devel
Reply to
Ming Lei, 2021-03-24
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
Thread (37 messages) 37 messages, 6 authors, last reply 2021-03-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help