HomeFreeBSD

mzap_upgrade() must use kmem_alloc()

Description

mzap_upgrade() must use kmem_alloc()

These allocations in mzap_update() used to be kmem_alloc() but
were changed to vmem_alloc() due to the size of the allocation.
However, since it turns out this function may be called in the
context of the txg_sync thread they must be changed back to use
a kmem_alloc() to ensure the KM_PUSHPAGE flag is honored.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 22 2012, 3:53 AM
Parents
rG8630650a8d9c: Annotate KM_PUSHPAGE call paths with PF_NOFS
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG991fc1d7ae25: mzap_upgrade() must use kmem_alloc() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 27 2012, 7:01 PM