Re: [PATCH 4/7] dma-buf: rename and cleanup dma_resv_get_excl

2021-06-02 Thread Jason Ekstrand
On Wed, Jun 2, 2021 at 7:43 AM Daniel Vetter wrote: > > On Wed, Jun 02, 2021 at 01:17:11PM +0200, Christian König wrote: > > When the comment needs to state explicitly that this > > doesn't get a reference to the object then the function > > is named rather badly. > > > > Rename the function and u

Re: [PATCH 4/7] dma-buf: rename and cleanup dma_resv_get_excl

2021-06-02 Thread Daniel Vetter
On Wed, Jun 02, 2021 at 01:17:11PM +0200, Christian König wrote: > When the comment needs to state explicitly that this > doesn't get a reference to the object then the function > is named rather badly. > > Rename the function and use rcu_dereference_check(), this > way it can be used from both rc

Re: [PATCH 4/7] dma-buf: rename and cleanup dma_resv_get_excl

2021-06-02 Thread Daniel Vetter
On Wed, Jun 02, 2021 at 01:17:11PM +0200, Christian König wrote: > When the comment needs to state explicitly that this > doesn't get a reference to the object then the function > is named rather badly. > > Rename the function and use rcu_dereference_check(), this > way it can be used from both rc