Skip to content

Commit

Permalink
[GFS2] Only two args for kobject_uevent() in locking/dlm/mount.c
Browse files Browse the repository at this point in the history
Update the dlm interface module to take account of the recently
removed third argument to kobject_uevent()

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steve Whitehouse <swhiteho@redhat.com>
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Jan 18, 2006
1 parent e7fd417 commit 5ddec5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/gfs2/locking/dlm/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ static void gdlm_recovery_done(lm_lockspace_t *lockspace, unsigned int jid,
{
struct gdlm_ls *ls = (struct gdlm_ls *) lockspace;
ls->recover_jid_done = jid;
kobject_uevent(&ls->kobj, KOBJ_CHANGE, NULL);
kobject_uevent(&ls->kobj, KOBJ_CHANGE);
}

static void gdlm_others_may_mount(lm_lockspace_t *lockspace)
{
struct gdlm_ls *ls = (struct gdlm_ls *) lockspace;
ls->first_done = 1;
kobject_uevent(&ls->kobj, KOBJ_CHANGE, NULL);
kobject_uevent(&ls->kobj, KOBJ_CHANGE);
}

/* Userspace gets the offline uevent, blocks new gfs locks on
Expand All @@ -213,7 +213,7 @@ static void gdlm_withdraw(lm_lockspace_t *lockspace)
{
struct gdlm_ls *ls = (struct gdlm_ls *) lockspace;

kobject_uevent(&ls->kobj, KOBJ_OFFLINE, NULL);
kobject_uevent(&ls->kobj, KOBJ_OFFLINE);

wait_event_interruptible(ls->wait_control,
test_bit(DFL_WITHDRAW, &ls->flags));
Expand Down

0 comments on commit 5ddec5b

Please sign in to comment.