tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vrele vs. syncer deadlock



dholland-tech%netbsd.org@localhost (David Holland) writes:

>On a low-memory machine Nick ran into the following deadlock:

>  (a) rename -> vrele on child -> inactive -> truncate -> getblk ->
>      no memory in buffer pool -> wait for syncer
>  (b) syncer waiting for locked parent vnode from the rename

>Does anyone have any suggestions for a patch to address this problem
>without first rewriting the syncer?

The syncer could skip locked vnodes if there are processes waiting for
a buffer.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index