On Wed, 28 Sep 2022 06:48:33 -0700 Gaurav Kohli wrote: > During vm boot, there might be possibility that vf registration > call comes before the vf association from host to vm. > > And this might break netvsc vf path, To prevent the same block > vf registration until vf bind message comes from host. > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 00d7ddba11436 ("hv_netvsc: pair VF based on serial number") > Signed-off-by: Gaurav Kohli <gauravkohli@xxxxxxxxxxxxxxxxxxx> Is it possible to add a timeout or such? Waiting for an external event while holding rtnl lock seems a little scary. The other question is - what protects the completion and ->vf_alloc from races? Is there some locking? ->vf_alloc only goes from 0 to 1 and never back?