]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/target/target_core_device.c
target: simplify reservations code
[karo-tx-linux.git] / drivers / target / target_core_device.c
index 6a27e7fd33fb5a192a53e633d7793f5ca6ab95f2..4ae1d3913821458c20814d7608f86e78a41c7a3e 100644 (file)
@@ -1398,7 +1398,6 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name)
        dev->dev_attrib.emulate_tas = DA_EMULATE_TAS;
        dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU;
        dev->dev_attrib.emulate_tpws = DA_EMULATE_TPWS;
-       dev->dev_attrib.emulate_reservations = DA_EMULATE_RESERVATIONS;
        dev->dev_attrib.emulate_alua = DA_EMULATE_ALUA;
        dev->dev_attrib.enforce_pr_isids = DA_ENFORCE_PR_ISIDS;
        dev->dev_attrib.is_nonrot = DA_IS_NONROT;
@@ -1447,8 +1446,6 @@ int target_configure_device(struct se_device *dev)
        dev->dev_index = scsi_get_new_index(SCSI_DEVICE_INDEX);
        dev->creation_time = get_jiffies_64();
 
-       core_setup_reservations(dev);
-
        ret = core_setup_alua(dev);
        if (ret)
                goto out;