On Tue, Apr 27, 2010 at 11:25:30AM +0200, Ingo Molnar wrote:
And the hung task detector too which is the last resort to detect
uncovered resource dependencies (was really useful for reiserfs).
But the problem is among those people who may use such ancient drivers,
I guess few of them will have those debug config enabled.
And because there are almost no testers of these drivers, nobody/few will ever
notice the problem.
So, as explained above, lockdep won't even help here.
I mean, for callsites that are obvious, say when it is clear that
the bkl is leaf lock or doesn't introduce uncovered resource dependencies due
to non-release on sleep, we should do such conversion. And I guess most
drivers that use the bkl follow this scheme.
But for the others (rares I think), the operation looks unsafe to me.
If we don't have the hardware to test the driver, then lockdep and hung
task detectors are going to be useless.
That said, once we reach that point with 4 users of bkl remaining, may
be that will be time to buy such hardware for a symbolic $1 in obscure
places and do the tests. Or just git-rm if we are too lazy.
--