Re: [PATCH 11/11] block: Introduce revalidate_disk_zones()

2018-10-10 Thread Christoph Hellwig
> +static inline unsigned long *__alloc_zone_bitmap(int node, > + unsigned int nr_zones) > +{ > + return kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(unsigned long), > + GFP_NOIO | __GFP_ZERO, node); kcalloc already implies G

[PATCH 11/11] block: Introduce revalidate_disk_zones()

2018-10-09 Thread Damien Le Moal
Drivers exposing zoned block devices have to initialize and maintain correctness (i.e. revalidate) of the device zone bitmaps attached to the device request queue (seq_zones_bitmap and seq_zones_wlock). To simplify coding this, introduce a generic helper function revalidate_disk_zones() suitable f