On Thu, Apr 01, 2021 at 10:58:54PM -0700, Song Liu wrote: > Hi Christoph and Heming, > > Trying to understand the whole picture here. Please let me know if I > misunderstood anything. > > IIUC, the primary goal of Christoph's set is to get rid of the > ERESTARTSYS hack from md, > and eventually move bd_mutext. 02/15 to 07/15 of this set cleans up > code in md.c, and they > are not very important for the rest of the set (is this correct?). Yes, at least that is the long term goal. But as posted in this thread we can just split the two patches out to do the same thing that the patch from Heming did, without making more of a mess of mddev_find. I can resend them separately as a small series instead of the attachment if that makes them easier to review.