]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't allocate new unnecessary pages when devstat_alloc() looses the
authorAttilio Rao <attilio@FreeBSD.org>
Fri, 18 Sep 2009 13:48:38 +0000 (13:48 +0000)
committerAttilio Rao <attilio@FreeBSD.org>
Fri, 18 Sep 2009 13:48:38 +0000 (13:48 +0000)
commit39df6da8cc1ac87cb894544c46934871c4aebe52
treeca59ff119063dbd453c065ee7426e8a502174250
parent6949482f89ea118b42c7013174d069eb5f414634
Don't allocate new unnecessary pages when devstat_alloc() looses the
run for re-acuiring the lock, but recheck if new pages are allocatable
from the pool and free the previously allocated ones.

Tested by: pho, Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>
sys/kern/subr_devstat.c