提交 372c9329 编写于 作者: L Lucas Stach

dma-buf: clarify locking documentation for reservation_object_get_excl

The documentation was misleading, as for a lot of use-cases holding
the RCU read side lock is sufficient.
Signed-off-by: NLucas Stach <l.stach@pengutronix.de>
Reviewed-by: NChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180111165302.25556-2-l.stach@pengutronix.de
上级 547c7138
...@@ -228,7 +228,8 @@ reservation_object_unlock(struct reservation_object *obj) ...@@ -228,7 +228,8 @@ reservation_object_unlock(struct reservation_object *obj)
* @obj: the reservation object * @obj: the reservation object
* *
* Returns the exclusive fence (if any). Does NOT take a * Returns the exclusive fence (if any). Does NOT take a
* reference. The obj->lock must be held. * reference. Writers must hold obj->lock, readers may only
* hold a RCU read side lock.
* *
* RETURNS * RETURNS
* The exclusive fence or NULL * The exclusive fence or NULL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册