ocfs2_dlm: Missing get/put lockres in dlm_run_purge_lockres

In some circumstances, this was causing us to reference freed memory.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>

authored by Sunil Mushran and committed by Mark Fasheh 3fca0894 afdf04ea

+2
+2
fs/ocfs2/dlm/dlmthread.c
··· 265 265 /* This may drop and reacquire the dlm spinlock if it 266 266 * has to do migration. */ 267 267 mlog(0, "calling dlm_purge_lockres!\n"); 268 + dlm_lockres_get(lockres); 268 269 if (dlm_purge_lockres(dlm, lockres)) 269 270 BUG(); 271 + dlm_lockres_put(lockres); 270 272 mlog(0, "DONE calling dlm_purge_lockres!\n"); 271 273 272 274 /* Avoid adding any scheduling latencies */