Changeset 31d8e10 in mainline for kernel/generic/include/mm/as.h


Ignore:
Timestamp:
2007-04-05T16:09:49Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
547fa39
Parents:
879585a3
Message:

Continue to de-oversynchronize the kernel.

  • replace as→refcount with an atomic counter; accesses to this

reference counter are not to be done when the as→lock mutex is held;
this gets us rid of mutex_lock_active();

Remove the possibility of a deadlock between TLB shootdown and asidlock.

  • get rid of mutex_lock_active() on as→lock
  • when locking the asidlock spinlock, always do it conditionally and with

preemption disabled; in the unsuccessful case, enable interrupts and try again

  • there should be no deadlock between TLB shootdown and the as→lock mutexes
  • PLEASE REVIEW !!!

Add DEADLOCK_PROBE's to places where we have spinlock_trylock() loops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/as.h

    r879585a3 r31d8e10  
    102102                asid_t asid;
    103103               
     104                /** Number of references (i.e tasks that reference this as). */
     105                atomic_t refcount;
     106
    104107                mutex_t lock;
    105                
    106                 /** Number of references (i.e tasks that reference this as). */
    107                 count_t refcount;
    108108               
    109109                /** B+tree of address space areas. */
     
    148148        asid_t asid;
    149149
     150        /** Number of references (i.e tasks that reference this as). */
     151        atomic_t refcount;
     152
    150153        mutex_t lock;
    151 
    152         /** Number of references (i.e tasks that reference this as). */
    153         count_t refcount;
    154154
    155155        /** B+tree of address space areas. */
Note: See TracChangeset for help on using the changeset viewer.