Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346545
b: refs/heads/master
c: a2d30a5
h: refs/heads/master
i:
  346543: 97e0442
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Nov 4, 2012
1 parent 6c4ca6f commit c355b9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 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: 326ce0a6da64df3eb8f13a623304ab8033d38c12
refs/heads/master: a2d30a54df968c01fff4a412ac23f55832f45fe6
15 changes: 5 additions & 10 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ static void nlm_destroy_host_locked(struct nlm_host *host)

dprintk("lockd: destroy host %s\n", host->h_name);

BUG_ON(!list_empty(&host->h_lockowners));
BUG_ON(atomic_read(&host->h_count));

hlist_del_init(&host->h_hash);

nsm_unmonitor(host);
Expand Down Expand Up @@ -289,13 +286,12 @@ void nlmclnt_release_host(struct nlm_host *host)

dprintk("lockd: release client host %s\n", host->h_name);

BUG_ON(atomic_read(&host->h_count) < 0);
BUG_ON(host->h_server);
WARN_ON_ONCE(host->h_server);

if (atomic_dec_and_test(&host->h_count)) {
BUG_ON(!list_empty(&host->h_lockowners));
BUG_ON(!list_empty(&host->h_granted));
BUG_ON(!list_empty(&host->h_reclaim));
WARN_ON_ONCE(!list_empty(&host->h_lockowners));
WARN_ON_ONCE(!list_empty(&host->h_granted));
WARN_ON_ONCE(!list_empty(&host->h_reclaim));

mutex_lock(&nlm_host_mutex);
nlm_destroy_host_locked(host);
Expand Down Expand Up @@ -412,8 +408,7 @@ void nlmsvc_release_host(struct nlm_host *host)

dprintk("lockd: release server host %s\n", host->h_name);

BUG_ON(atomic_read(&host->h_count) < 0);
BUG_ON(!host->h_server);
WARN_ON_ONCE(!host->h_server);
atomic_dec(&host->h_count);
}

Expand Down

0 comments on commit c355b9b

Please sign in to comment.