[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
holding locks while kalloc?
From: |
Marcus Brinkmann |
Subject: |
holding locks while kalloc? |
Date: |
Sat, 12 Jan 2002 14:29:04 -0600 |
User-agent: |
Mutt/1.2.5i |
Hi,
I noticed that in gnumach/i386/i386/iopb.c, i386_io_port_add is careful
to release all locks while running kalloc() to allocate some memory for
the I/O bitmap, and goes back to retry via goto.
Is this in general a good strategy? What is the danger that purposedly
is avoided here? Do I need to do a similar thing when locking the
task I/O bitmap in the new code?
Thanks,
Marcus
- holding locks while kalloc?,
Marcus Brinkmann <=