On Mon, Sep 7, 2020 at 6:24 PM Ming Lei <ming.lei@xxxxxxxxxx> wrote: > > MD code uses perpcu-refcount internal to check if this percpu-refcount > variable is initialized, this way is a hack. > > Add percpu_ref_inited() for MD so that the hack can be avoided. > > Suggested-by: Jens Axboe <axboe@xxxxxxxxx> > Tested-by: Veronika Kabatova <vkabatov@xxxxxxxxxx> > Cc: Song Liu <song@xxxxxxxxxx> > Cc: linux-raid@xxxxxxxxxxxxxxx > Cc: Sagi Grimberg <sagi@xxxxxxxxxxx> > Cc: Tejun Heo <tj@xxxxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Jens Axboe <axboe@xxxxxxxxx> > Cc: Bart Van Assche <bvanassche@xxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> Acked-by: Song Liu <song@xxxxxxxxxx>