Fix locking. The dst_object must remain locked on the retry of the

loop iteration.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	6 days
This commit is contained in:
Konstantin Belousov 2014-05-11 18:07:07 +00:00
parent dd006a1b14
commit c8f780e3d6

View file

@ -1359,6 +1359,7 @@ again:
VM_OBJECT_WUNLOCK(dst_object);
VM_OBJECT_RUNLOCK(object);
VM_WAIT;
VM_OBJECT_WLOCK(dst_object);
goto again;
}
} while (dst_m == NULL);