浏览代码

[SCSI] libiscsi: fix aen support

We have been dropping the pdu. We should just send it to userspace
and let it handle it.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Mike Christie 18 年之前
父节点
当前提交
5831c737f7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/scsi/libiscsi.c

+ 2 - 2
drivers/scsi/libiscsi.c

@@ -481,8 +481,8 @@ int __iscsi_complete_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
 			break;
 			break;
 		case ISCSI_OP_ASYNC_EVENT:
 		case ISCSI_OP_ASYNC_EVENT:
 			conn->exp_statsn = be32_to_cpu(hdr->statsn) + 1;
 			conn->exp_statsn = be32_to_cpu(hdr->statsn) + 1;
-			/* we need sth like iscsi_async_event_rsp() */
-			rc = ISCSI_ERR_BAD_OPCODE;
+			if (iscsi_recv_pdu(conn->cls_conn, hdr, data, datalen))
+				rc = ISCSI_ERR_CONN_FAILED;
 			break;
 			break;
 		default:
 		default:
 			rc = ISCSI_ERR_BAD_OPCODE;
 			rc = ISCSI_ERR_BAD_OPCODE;