aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:48 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:19 -0400
commit5431ae267ab20464cea3e1c1d1bc34d259f3973c (patch)
treeb8d4be9da780c0b909db20d6d32ef9bd0bace2a7
parent4223b9e919761ba1405a8505bda0b4efa17e8f0e (diff)
[SCSI] libiscsi: don't bugon when if user sets markers
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>
-rw-r--r--drivers/scsi/libiscsi.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 256a999d010b..d7c76f2eb636 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -3163,7 +3163,6 @@ int iscsi_set_param(struct iscsi_cls_conn *cls_conn,
3163{ 3163{
3164 struct iscsi_conn *conn = cls_conn->dd_data; 3164 struct iscsi_conn *conn = cls_conn->dd_data;
3165 struct iscsi_session *session = conn->session; 3165 struct iscsi_session *session = conn->session;
3166 uint32_t value;
3167 3166
3168 switch(param) { 3167 switch(param) {
3169 case ISCSI_PARAM_FAST_ABORT: 3168 case ISCSI_PARAM_FAST_ABORT:
@@ -3220,14 +3219,6 @@ int iscsi_set_param(struct iscsi_cls_conn *cls_conn,
3220 case ISCSI_PARAM_ERL: 3219 case ISCSI_PARAM_ERL:
3221 sscanf(buf, "%d", &session->erl); 3220 sscanf(buf, "%d", &session->erl);
3222 break; 3221 break;
3223 case ISCSI_PARAM_IFMARKER_EN:
3224 sscanf(buf, "%d", &value);
3225 BUG_ON(value);
3226 break;
3227 case ISCSI_PARAM_OFMARKER_EN:
3228 sscanf(buf, "%d", &value);
3229 BUG_ON(value);
3230 break;
3231 case ISCSI_PARAM_EXP_STATSN: 3222 case ISCSI_PARAM_EXP_STATSN:
3232 sscanf(buf, "%u", &conn->exp_statsn); 3223 sscanf(buf, "%u", &conn->exp_statsn);
3233 break; 3224 break;