> Why not just make rq->cmd always properly aligned in the block layer > i.e. by allocating BLK_MAX_CDB + 2 instead of BLK_MAX_CDB for rq->__cmd > and then doing ALIGN() when setting rq->cmd in blk_rq_init()? There are two places that do if (rq->cmd != rq->__cmd) kfree(rq->cmd); that would need to be adjusted if you did that. Better to get __cmd aligned on a good boundary by changing the declaration to int __cmd[BLK_MAX_CDB / sizeof (int)]; and adding a cast to blk_rq_init(): rq->cmd = (char *)rq->__cmd; -Tony -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html