Re: [Cluster-devel] [PATCH v3 17/19] md: raid1: check if adding pages to resync bio fails

2023-04-19 Thread Song Liu
On Wed, Apr 19, 2023 at 7:11 AM Johannes Thumshirn wrote: > > From: Johannes Thumshirn > > Check if adding pages to resync bio fails and if bail out. > > As the comment above suggests this cannot happen, WARN if it actually > happens. > > This way we can mark bio_add_pages as __must_check. > >

[Cluster-devel] [PATCH v3 17/19] md: raid1: check if adding pages to resync bio fails

2023-04-19 Thread Johannes Thumshirn
From: Johannes Thumshirn Check if adding pages to resync bio fails and if bail out. As the comment above suggests this cannot happen, WARN if it actually happens. This way we can mark bio_add_pages as __must_check. Signed-off-by: Johannes Thumshirn Reviewed-by: Damien Le Moal ---