Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38810
b: refs/heads/master
c: c6e6f0b
h: refs/heads/master
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Aug 31, 2006
1 parent af1832e commit 3a92708
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 623d93555c8884768db65ffc11509c93e50dd4db
refs/heads/master: c6e6f0ba8fc1dea99c7bd020916f24d533b62697
9 changes: 6 additions & 3 deletions trunk/fs/dlm/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int device_remove_lockspace(struct dlm_lspace_params *params)
{
dlm_lockspace_t *lockspace;
struct dlm_ls *ls;
int error;
int error, force = 0;

if (!capable(CAP_SYS_ADMIN))
return -EPERM;
Expand All @@ -341,15 +341,18 @@ static int device_remove_lockspace(struct dlm_lspace_params *params)
}
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,
so all processes will need to close their device for the ls
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;
}

Expand Down

0 comments on commit 3a92708

Please sign in to comment.