diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2013-02-13 12:21:40 (GMT) |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2013-02-13 12:21:40 (GMT) |
commit | fd95e81cb1c74c9acd2356821faa9f24c2fec365 (patch) | |
tree | c042403ac12c38a9dc74a59d63bf5e19639e794d /fs/gfs2/util.c | |
parent | d2b47cfb26fe06002b8011707baac71a9ae8166f (diff) | |
download | linux-fd95e81cb1c74c9acd2356821faa9f24c2fec365.tar.xz |
GFS2: Reinstate withdraw ack system
This patch reinstates the ack system which withdraw should be using. It
appears to have been accidentally forgotten when the lock module was
merged into GFS2, due to two different sysfs files having the same name.
Reported-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/util.c')
-rw-r--r-- | fs/gfs2/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c index f00d7c5..6402fb6 100644 --- a/fs/gfs2/util.c +++ b/fs/gfs2/util.c @@ -54,6 +54,9 @@ int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...) kobject_uevent(&sdp->sd_kobj, KOBJ_OFFLINE); + if (!strcmp(sdp->sd_lockstruct.ls_ops->lm_proto_name, "lock_dlm")) + wait_for_completion(&sdp->sd_wdack); + if (lm->lm_unmount) { fs_err(sdp, "telling LM to unmount\n"); lm->lm_unmount(sdp); |