]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
target: Remove se_device.dev_list
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 23 May 2017 23:48:23 +0000 (16:48 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 05:57:58 +0000 (22:57 -0700)
The last user of se_device.dev_list was removed through commit
0fd97ccf45be ("target: kill struct se_subsystem_dev"). Hence
also remove se_device.dev_list.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Andy Grover <agrover@redhat.com>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
include/target/target_core_base.h

index 6403f44e610415197ede6354d0f9a04e648d4774..1f54b397bd57444b7149875cf89138c2c8f039e7 100644 (file)
@@ -767,7 +767,6 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name)
        dev->prot_length = sizeof(struct t10_pi_tuple);
        dev->hba_index = hba->hba_index;
 
-       INIT_LIST_HEAD(&dev->dev_list);
        INIT_LIST_HEAD(&dev->dev_sep_list);
        INIT_LIST_HEAD(&dev->dev_tmr_list);
        INIT_LIST_HEAD(&dev->delayed_cmd_list);
index f835528e424e79cb63bb0f0afe45f8624079bbab..a3af69fcf75e463acb5cb4f530e6aca3ab7dfb9a 100644 (file)
@@ -816,8 +816,6 @@ struct se_device {
        unsigned char           udev_path[SE_UDEV_PATH_LEN];
        /* Pointer to template of function pointers for transport */
        const struct target_backend_ops *transport;
-       /* Linked list for struct se_hba struct se_device list */
-       struct list_head        dev_list;
        struct se_lun           xcopy_lun;
        /* Protection Information */
        int                     prot_length;