Agree. I have debug checks for this in the 2.5 code and
they do not come out in normal use, so no probs there.
I'm starting to tighten all of this up in the patches
which I'm working on. Move the debug checks out of
ll_rw_block and into submit_bh. submit_bh will complain about
- writing non-uptodate buffer
- reading uptodate buffer
- reading dirty buffer
- reading or writing unmapped buffer
- anything else I can think of.
This means that a number of callers need to be changed
to set the bits correctly, which is pointless work.
But really, I think we need that formality - we keep on
making obscure mistakes in this area and the costs are
high.
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/