Opened 14 years ago

Last modified 14 years ago

#230 closed defect

Mutexes taken when spinlocks held — at Initial Version

Reported by: Jakub Jermář Owned by:
Priority: major Milestone: 0.4.3
Component: helenos/kernel/generic Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

In the current revision, changeset:head,402, the stats code attempts to lock the address space mutexes while holding task locks:

get_stats_tasks()
   spinlock_lock(&tasks_lock)
   task_serialize_walker()
      spinlock__lock(&task->lock)
      produce_stats_task()
         get_task_virtmem()
            mutex_lock(&as->lock)
            mutex_lock(&as->area->lock)

Note that this is actually a bug.

Change History (0)

Note: See TracTickets for help on using tickets.