In general this looks good. But as Jan mentioned you need to clear BIO_CHAIN when bi_remaining reaches zero, and I'd really prefer if bio_inc_remaining wuld not be left exported and folded into bio_chain so that we prevent new abuses from showing up and keep the code centralized. -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel