Merge tag 'ceph-for-4.8-rc1' of git://github.com/ceph/ceph-client
[deliverable/linux.git] / drivers / block / rbd.c
index 58fd02d4e534b6bbbf7654c1280a7ed75cc7b4b0..1a04af6d24212cdd16e5c8091d01f16e2b409384 100644 (file)
@@ -3286,9 +3286,9 @@ static void rbd_queue_workfn(struct work_struct *work)
                goto err;
        }
 
-       if (rq->cmd_flags & REQ_DISCARD)
+       if (req_op(rq) == REQ_OP_DISCARD)
                op_type = OBJ_OP_DISCARD;
-       else if (rq->cmd_flags & REQ_WRITE)
+       else if (req_op(rq) == REQ_OP_WRITE)
                op_type = OBJ_OP_WRITE;
        else
                op_type = OBJ_OP_READ;
This page took 0.024615 seconds and 5 git commands to generate.