<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gem cancel_userptr warning"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97343#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gem cancel_userptr warning"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97343">bug 97343</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>More subtle fix:

        struct i915_vma *vma;
        LIST_HEAD(still_in_list);
+       unsigned long active;
        int ret = 0;

+       active = i915_gem_object_get_active(obj);
+       for_each_active(active, idx) {
+               ret = i915_gem_active_retire(&obj->last_read[idx],
+                                            &obj->base.dev->struct_mutex);
+               if (ret)
+                       return ret;
+       }
+</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>