On 15/05/2020 04:17, Bo YU wrote: > It adds spin_lock() in add_block_entry() but out path does not unlock > it.
Which call path doesn't unlock it? There is an out_unlock label with a spin_unlock() right above your insert. So either coverity messed something up or the call path that needs the unlock has to jump to out_unlock instead of out.