Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a422bc5 in mainline


Ignore:
Timestamp:
2010-04-28T20:48:05Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
55821eea
Parents:
373acb4
Message:

Do not hold TASK→lock during the call to as_area_create(TASK→as, …).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/ddi.c

    r373acb4 ra422bc5  
    160160       
    161161map:
    162         spinlock_lock(&TASK->lock);
    163        
     162        interrupts_restore(ipl);
     163
    164164        if (!as_area_create(TASK->as, flags, pages * PAGE_SIZE, vp,
    165165            AS_AREA_ATTR_NONE, &phys_backend, &backend_data)) {
     
    168168                 * We report it using ENOMEM.
    169169                 */
    170                 spinlock_unlock(&TASK->lock);
    171                 interrupts_restore(ipl);
    172170                return ENOMEM;
    173171        }
     
    176174         * Mapping is created on-demand during page fault.
    177175         */
    178        
    179         spinlock_unlock(&TASK->lock);
    180         interrupts_restore(ipl);
    181176        return 0;
    182177}
Note: See TracChangeset for help on using the changeset viewer.