What guarantees that it doesn't happen before we get to callback? AFAICS,
And if it does happen, we'll get rdev happily freed (by rdev_free(), as
->release() of &rdev->kobj) by the time we get to delayed_delete(). Which
explains what's going on just fine.
-- Al Viro
shows how to debug kernel
I consider the fact that I
can spend full-time working on Linux to be a blessing. But if you
don't feel that way, my condolences, and please do what you need to do
so you can stay in your happy place.
-- Ted Ts'o
shows how to respond with class
to post comments)