Processor priority level for Algorithm for Buffer Allocation
The algorithm for reading and writing disk blocks use the algorithm getblk to allocate buffers from the pool.
In the algorithm getblk, if the kernel removes a buffer from the free list, it must raise the processor priority level to block out interrupts before checking the free list. Why ? Code:
algorithm getblk |
Are you referring to the code in fs/buffer.c?
I'm not familiar with this code, but the reason for blocking out interrupts before checking a list would be to prevent the list changing while it is being accessed. |
All times are GMT -5. The time now is 09:22 PM. |