]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/scsi/scsi_transport_iscsi.c
nvme: cache controller attributes
[linux.git] / drivers / scsi / scsi_transport_iscsi.c
index 6fd2fe210fc324b2bde0f1a72bd79f2939b3bca9..ff123023e5a58b2938f6f767a22799744b5a09cb 100644 (file)
@@ -1542,7 +1542,7 @@ iscsi_bsg_host_add(struct Scsi_Host *shost, struct iscsi_cls_host *ihost)
                return -ENOTSUPP;
 
        snprintf(bsg_name, sizeof(bsg_name), "iscsi_host%d", shost->host_no);
-       q = bsg_setup_queue(dev, bsg_name, iscsi_bsg_host_dispatch, 0);
+       q = bsg_setup_queue(dev, bsg_name, iscsi_bsg_host_dispatch, NULL, 0);
        if (IS_ERR(q)) {
                shost_printk(KERN_ERR, shost, "bsg interface failed to "
                             "initialize - no request queue\n");
@@ -1576,10 +1576,7 @@ static int iscsi_remove_host(struct transport_container *tc,
        struct Scsi_Host *shost = dev_to_shost(dev);
        struct iscsi_cls_host *ihost = shost->shost_data;
 
-       if (ihost->bsg_q) {
-               bsg_unregister_queue(ihost->bsg_q);
-               blk_cleanup_queue(ihost->bsg_q);
-       }
+       bsg_remove_queue(ihost->bsg_q);
        return 0;
 }