Re: [PATCH 04/12] target: avoid to access .bi_vcnt directly

2016-11-12 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 04/12] target: avoid to access .bi_vcnt directly

2016-11-11 Thread Ming Lei
When the bio is full, bio_add_pc_page() will return zero, so use this way to handle full bio. Also replace access to .bi_vcnt for pr_debug() with bio_segments(). Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- drivers/target/target_core_pscsi.c |