Please take a look at the following message.
http://article.gmane.org/gmane.linux.kernel/521729
I could reproduce both races on my test machine fairly reliable with
parallel find, cat, mount/mount while repeatedly ins/rmmoding a libata
driver.
Which makes oopsing the default. Fun! :-)
The above message contains analysis of both races. I just ported the
fixes. I have a different test machine now and can't reproduce the
races with this one yet so I couldn't verify whether the patches
actually fix the problem. I'll post the patches anyway. If anyone can
reproduce these races, please verify the posted patches fix the problem.
Thanks.
--
tejun
-