Re: [dm-devel] [PATCH v5 2/2] dm: support bio polling

2022-03-06 Thread Ming Lei
On Mon, Mar 07, 2022 at 10:41:31AM +0800, Ming Lei wrote: > On Sun, Mar 06, 2022 at 07:25:11PM -0700, Jens Axboe wrote: > > On 3/6/22 7:20 PM, Ming Lei wrote: > > > On Sun, Mar 06, 2022 at 06:48:15PM -0700, Jens Axboe wrote: > > >> On 3/6/22 2:29 AM, Christoph Hellwig wrote: > > +/* > >

Re: [dm-devel] [PATCH v5 2/2] dm: support bio polling

2022-03-06 Thread Ming Lei
On Sun, Mar 06, 2022 at 07:25:11PM -0700, Jens Axboe wrote: > On 3/6/22 7:20 PM, Ming Lei wrote: > > On Sun, Mar 06, 2022 at 06:48:15PM -0700, Jens Axboe wrote: > >> On 3/6/22 2:29 AM, Christoph Hellwig wrote: > +/* > + * Reuse ->bi_end_io as hlist head for storing all dm_io instances >

Re: [dm-devel] [PATCH v5 2/2] dm: support bio polling

2022-03-06 Thread Jens Axboe
On 3/6/22 7:20 PM, Ming Lei wrote: > On Sun, Mar 06, 2022 at 06:48:15PM -0700, Jens Axboe wrote: >> On 3/6/22 2:29 AM, Christoph Hellwig wrote: +/* + * Reuse ->bi_end_io as hlist head for storing all dm_io instances + * associated with this bio, and this bio's bi_end_io has to be

Re: [dm-devel] [PATCH v5 2/2] dm: support bio polling

2022-03-06 Thread Ming Lei
On Sun, Mar 06, 2022 at 06:48:15PM -0700, Jens Axboe wrote: > On 3/6/22 2:29 AM, Christoph Hellwig wrote: > >> +/* > >> + * Reuse ->bi_end_io as hlist head for storing all dm_io instances > >> + * associated with this bio, and this bio's bi_end_io has to be > >> + * stored in one of 'dm_io'

Re: [dm-devel] [PATCH v5 2/2] dm: support bio polling

2022-03-06 Thread Jens Axboe
On 3/6/22 2:29 AM, Christoph Hellwig wrote: >> +/* >> + * Reuse ->bi_end_io as hlist head for storing all dm_io instances >> + * associated with this bio, and this bio's bi_end_io has to be >> + * stored in one of 'dm_io' instance first. >> + */ >> +static inline struct hlist_head

Re: [dm-devel] [PATCH v5 2/2] dm: support bio polling

2022-03-06 Thread Christoph Hellwig
> +/* > + * Reuse ->bi_end_io as hlist head for storing all dm_io instances > + * associated with this bio, and this bio's bi_end_io has to be > + * stored in one of 'dm_io' instance first. > + */ > +static inline struct hlist_head *dm_get_bio_hlist_head(struct bio *bio) > +{ > +

Re: [dm-devel] [PATCH v5 1/2] block: add ->poll_bio to block_device_operations

2022-03-06 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel