[SCSI] libiscsi: don't bugon when if user sets markers
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 25 Jul 2011 18:48:48 +0000 (13:48 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:36:19 +0000 (08:36 -0600)
libiscsi does not support markers and if someone tries
to set them the driver does a BUG(). There is not need
to be that extreme. Just return -ENOSYS.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libiscsi.c

index 256a999d010bc6414f3f6702189decddd3813ac4..d7c76f2eb6368eac8f6b1d0e50f51fe6f087e53c 100644 (file)
@@ -3163,7 +3163,6 @@ int iscsi_set_param(struct iscsi_cls_conn *cls_conn,
 {
        struct iscsi_conn *conn = cls_conn->dd_data;
        struct iscsi_session *session = conn->session;
-       uint32_t value;
 
        switch(param) {
        case ISCSI_PARAM_FAST_ABORT:
@@ -3220,14 +3219,6 @@ int iscsi_set_param(struct iscsi_cls_conn *cls_conn,
        case ISCSI_PARAM_ERL:
                sscanf(buf, "%d", &session->erl);
                break;
-       case ISCSI_PARAM_IFMARKER_EN:
-               sscanf(buf, "%d", &value);
-               BUG_ON(value);
-               break;
-       case ISCSI_PARAM_OFMARKER_EN:
-               sscanf(buf, "%d", &value);
-               BUG_ON(value);
-               break;
        case ISCSI_PARAM_EXP_STATSN:
                sscanf(buf, "%u", &conn->exp_statsn);
                break;