Re: [BUG] slab debug vs. L1 alignement

From: Benjamin Herrenschmidt
Date: Sat Aug 16 2003 - 05:47:07 EST



> >
> Hmm. That means slab debugging did it's job: The driver contains the
> wrong assumption that all pointers are cache line aligned. Without slab
> debugging, this would result in rare data corruptions in O_DIRECT apps.
> With slab debugging on, it's exposed immediately.

As we discussed on IRC, I think SCSI host drivers (at least) can assume
beeing passed aligned buffers, if somebody don't agree, please speak
up ;) Christoph said that O_DIRECT has strict alignement rules too.

Ben.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/