Hi Xiao,
On 8/16/21 5:01 PM, Xiao Ni wrote:
On Mon, Aug 16, 2021 at 2:36 PM Guoqing Jiang <guoqing.jiang@xxxxxxxxx> wrote:
Can rdev be removed between the first loop and the second loop?
Hi Guoqing
As the patch's commit message says, it adds rdev->nr_pending already.
So we can guarantee the rdev
can't be removed during the first loop and the second loop.
I missed that, thanks for clarification. Maybe mention it in description
that nr_pending is incremented
which means rdev can't disappear.
Thanks,
Guoqing