On Wed, Mar 02, 2016 at 06:07:12PM +0100, Christoph Hellwig wrote: > The block layer uses an unsigned short for max_segments. The way we > calculate the value for NVMe tends to generate very large 32-bit values, > which after integer truncation may lead to a zero value instead of > the desired outcome. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > Reported-by: Jeff Lien <Jeff.Lien@xxxxxxxx> > Tested-by: Jeff Lien <Jeff.Lien@xxxxxxxx> Looks good. Reviewed-by: Keith Busch <keith.busch@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html