diff options
Diffstat (limited to 'fs/gfs2/locking/dlm/thread.c')
-rw-r--r-- | fs/gfs2/locking/dlm/thread.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/gfs2/locking/dlm/thread.c b/fs/gfs2/locking/dlm/thread.c index f30350abd62f..38823efd698c 100644 --- a/fs/gfs2/locking/dlm/thread.c +++ b/fs/gfs2/locking/dlm/thread.c | |||
@@ -20,19 +20,6 @@ static inline int no_work(struct gdlm_ls *ls) | |||
20 | return ret; | 20 | return ret; |
21 | } | 21 | } |
22 | 22 | ||
23 | static inline int check_drop(struct gdlm_ls *ls) | ||
24 | { | ||
25 | if (!ls->drop_locks_count) | ||
26 | return 0; | ||
27 | |||
28 | if (time_after(jiffies, ls->drop_time + ls->drop_locks_period * HZ)) { | ||
29 | ls->drop_time = jiffies; | ||
30 | if (ls->all_locks_count >= ls->drop_locks_count) | ||
31 | return 1; | ||
32 | } | ||
33 | return 0; | ||
34 | } | ||
35 | |||
36 | static int gdlm_thread(void *data) | 23 | static int gdlm_thread(void *data) |
37 | { | 24 | { |
38 | struct gdlm_ls *ls = (struct gdlm_ls *) data; | 25 | struct gdlm_ls *ls = (struct gdlm_ls *) data; |
@@ -52,12 +39,6 @@ static int gdlm_thread(void *data) | |||
52 | gdlm_do_lock(lp); | 39 | gdlm_do_lock(lp); |
53 | spin_lock(&ls->async_lock); | 40 | spin_lock(&ls->async_lock); |
54 | } | 41 | } |
55 | /* Does this ever happen these days? I hope not anyway */ | ||
56 | if (check_drop(ls)) { | ||
57 | spin_unlock(&ls->async_lock); | ||
58 | ls->fscb(ls->sdp, LM_CB_DROPLOCKS, NULL); | ||
59 | spin_lock(&ls->async_lock); | ||
60 | } | ||
61 | spin_unlock(&ls->async_lock); | 42 | spin_unlock(&ls->async_lock); |
62 | } | 43 | } |
63 | 44 | ||