Commit 6aa471df authored by Jan Kiszka's avatar Jan Kiszka
Browse files

cobalt/posix/sem: Pull xnregistry_remove out of nklock



Neither needed nor correct for named semaphores where xnregistry_remove
will trigger a flush_work when running over the secondary domain.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 747e0fad
...@@ -62,7 +62,6 @@ int __cobalt_sem_destroy(xnhandle_t handle) ...@@ -62,7 +62,6 @@ int __cobalt_sem_destroy(xnhandle_t handle)
} }
cobalt_mark_deleted(sem); cobalt_mark_deleted(sem);
xnregistry_remove(sem->resnode.handle);
if (!sem->pathname) if (!sem->pathname)
cobalt_del_resource(&sem->resnode); cobalt_del_resource(&sem->resnode);
if (xnsynch_destroy(&sem->synchbase) == XNSYNCH_RESCHED) { if (xnsynch_destroy(&sem->synchbase) == XNSYNCH_RESCHED) {
...@@ -72,6 +71,7 @@ int __cobalt_sem_destroy(xnhandle_t handle) ...@@ -72,6 +71,7 @@ int __cobalt_sem_destroy(xnhandle_t handle)
xnlock_put_irqrestore(&nklock, s); xnlock_put_irqrestore(&nklock, s);
xnregistry_remove(sem->resnode.handle);
if (sem->pathname) if (sem->pathname)
putname(sem->pathname); putname(sem->pathname);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment