]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/libsas/sas_expander.c
Merge branch 'for-3.10/core' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / drivers / scsi / libsas / sas_expander.c
index 55cbd018015997bba484bfe5ffdbacabcc7e43db..f42b0e15410f8a52e0a570664b04547d459e7aec 100644 (file)
@@ -2163,10 +2163,10 @@ int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
        }
 
        /* do we need to support multiple segments? */
-       if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) {
+       if (bio_segments(req->bio) > 1 || bio_segments(rsp->bio) > 1) {
                printk("%s: multiple segments req %u %u, rsp %u %u\n",
-                      __func__, req->bio->bi_vcnt, blk_rq_bytes(req),
-                      rsp->bio->bi_vcnt, blk_rq_bytes(rsp));
+                      __func__, bio_segments(req->bio), blk_rq_bytes(req),
+                      bio_segments(rsp->bio), blk_rq_bytes(rsp));
                return -EINVAL;
        }