Re: [RFC PATCH] can: gw: fix RCU/BH usage in cgw_create_job()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2024-01-22 11:10:38 [+0100], To Oliver Hartkopp wrote:
> > Would a spin_lock() or spin_lock_bh() be an alternative to lock this update
> > against the modification execution in can_can_gw_rcv()?
> 
> Yes, that is what locks are for. You would have to put the lock outside
> of ccgw and acquire it before reading or writting ccgw.

Hi :)

> > Best regards,
> > Oliver

Sebastian




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux