No, it's brought attention to this interesting slab merge issue;
even if in the end we decide that's a non-issue.
I don't believe you _need_ a separate sense_slab even for that:
what I meant was that you just need something like
pool->cmd_slab = kmem_cache_create(pool->cmd_name,
cache_line_align(
sizeof(struct scsi_cmnd)) +
max_scsi_sense_buffersize,
0, pool->slab_flags, NULL);
then point cmd->sense_buffer to (unsigned char *) cmd +
cache_line_align(sizeof(struct scsi_cmnd));
where cache_line_align and max_scsi_sense_buffersize are preferably
determined at runtime.
Now, it may well be that over the different configurations, at least
some would waste significant memory by putting it all in the one big
buffer, and you're better off with the separate slabs: so I didn't
want to interfere with your direction on that.
Hugh
--