• Adam Wujek's avatar
    userspace/wrsw_rtud: fix double locking a shmem on write · 2305ff10
    Adam Wujek authored
    Remove excessive locks from the function delete_htab_entry.
    Function rtu_fd_commit is always guarded with shmem lock. The function
    rtu_fd_commit calls rtu_hw_commit, which calls delete_htab_entry. By this
    function wrs_shm_write with a parameter WRS_SHM_WRITE_BEGIN was called twice
    before it was called twice with a parameter WRS_SHM_WRITE_END.
    Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
    2305ff10
rtu_fd.c 21.5 KB