Instead of hardcoding operation = 4, BLKIF_OP_RESERVED_1 = 4 is defined in
the header file.
Orabug:
29199843
Suggested-by: Ankur Arora <ankur.a.arora@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Reviewed-by: Joe Jin <joe.jin@oracle.com>
Reviewed-by: Ankur Arora <ankur.a.arora@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
unsigned short req_operation = req->operation == BLKIF_OP_INDIRECT ?
req->u.indirect.indirect_op : req->operation;
+ if (unlikely(req_operation == BLKIF_OP_RESERVED_1))
+ goto fail;
+
/* For discard, nseg is not meaninful */
if (unlikely(req_operation == BLKIF_OP_DISCARD))
return true;
*/
#define BLKIF_OP_FLUSH_DISKCACHE 3
+/*
+ * BLKIF_OP_RESERVED_1 (or BLKIF_OP_PACKET) is neither supported by oracle
+ * linux nor upstream linux. It is primarily used by SLES.
+ */
+#define BLKIF_OP_RESERVED_1 4
+
/*
* Recognised only if "feature-discard" is present in backend xenbus info.
* The "feature-discard" node contains a boolean indicating whether trim