Re: [PATCH V5 1/3] percpu_ref: add percpu_ref_is_initialized for MD

2020-09-28 Thread Christoph Hellwig
On Sun, Sep 27, 2020 at 02:26:52PM +0800, Ming Lei wrote: > MD code uses perpcu-refcount internal to check if this percpu-refcount > variable is initialized, this way is a hack. > > Add percpu_ref_is_initialized for MD so that the hack can be avoided. > > Acked-by: Song Liu > Suggested-by: Jens

[PATCH V5 1/3] percpu_ref: add percpu_ref_is_initialized for MD

2020-09-26 Thread Ming Lei
MD code uses perpcu-refcount internal to check if this percpu-refcount variable is initialized, this way is a hack. Add percpu_ref_is_initialized for MD so that the hack can be avoided. Acked-by: Song Liu Suggested-by: Jens Axboe Tested-by: Veronika Kabatova Cc: Song Liu Cc: linux-r...@vger.k