Re: [dm-devel] [PATCH RFC 4/7] block: define blk_qc_t as uintptr_t

2021-01-07 Thread Mike Snitzer
On Wed, Dec 23 2020 at 6:26am -0500, Jeffle Xu wrote: > To support iopoll for bio-based device, the returned cookie is actually > a pointer to an implementation specific object, e.g. an object > maintaining all split bios. > > In such case, blk_qc_t should be large enough to contain one

[dm-devel] [PATCH RFC 4/7] block: define blk_qc_t as uintptr_t

2021-01-04 Thread Jeffle Xu
To support iopoll for bio-based device, the returned cookie is actually a pointer to an implementation specific object, e.g. an object maintaining all split bios. In such case, blk_qc_t should be large enough to contain one pointer, for which uintptr_t is used here. Since uintptr_t is actually an