/* noqueue requests that fail may need to be removed from the
proc's locks list, there should be a better way of detecting
this situation than checking all these things... */
-
+
if (type == AST_COMP && lkb->lkb_grmode == DLM_LOCK_IV &&
ua->lksb.sb_status == -EAGAIN && !list_empty(&lkb->lkb_ownqueue))
remove_ownqueue = 1;
{
dlm_lockspace_t *lockspace;
struct dlm_ls *ls;
- int error;
+ int error, force = 0;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
}
kfree(ls->ls_device.name);
+ if (params->flags & DLM_USER_LSFLG_FORCEFREE)
+ force = 2;
+
lockspace = ls->ls_local_handle;
/* dlm_release_lockspace waits for references to go to zero,
before the release will procede */
dlm_put_lockspace(ls);
- error = dlm_release_lockspace(lockspace, 0);
-out:
+ error = dlm_release_lockspace(lockspace, force);
+ out:
return error;
}