On 10/14/26 13:30, Christian König wrote:
On 10/14/26 13:01, Pavel Begunkov wrote:
...>> +static void dma_buf_io_kill_map(struct dma_buf_io_ctx *ctx)
+{
+       struct dma_buf_io_map *map;
+
+       dma_resv_assert_held(ctx->dmabuf->resv);
+
+       map = rcu_dereference_protected(ctx->map,
+                               dma_resv_held(ctx->dmabuf->resv));
+       if (!map)
+               return;
+
+       rcu_assign_pointer(ctx->map, NULL);
+       percpu_ref_kill(&map->refs);
+       /* make sure the map is not visible via ctx->map */
+       synchronize_rcu_expedited();
+       wait_for_completion(&map->drained);
+       dma_buf_io_map_release(map);
+}
+
+int dma_buf_io_init_map(struct dma_buf_io_ctx *ctx, struct dma_buf_io_map *map,
+                       struct sg_table *sgt)

You somehow forgotten the kerneldoc I asked for here.

Ah yes, missed that function. I'll add it but perhaps in a separate
patch, if you don't mind, depending whether we queue it for 7.4.

Apart from that still looks good, but I had only time to skim over it.
--
Pavel Begunkov


Reply via email to