diff options
Diffstat (limited to 'include/linux/lockd/lockd.h')
-rw-r--r-- | include/linux/lockd/lockd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index a8876bc6513..0d92c468d55 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -49,11 +49,12 @@ struct nlm_host { | |||
49 | h_killed : 1, | 49 | h_killed : 1, |
50 | h_monitored : 1; | 50 | h_monitored : 1; |
51 | wait_queue_head_t h_gracewait; /* wait while reclaiming */ | 51 | wait_queue_head_t h_gracewait; /* wait while reclaiming */ |
52 | struct rw_semaphore h_rwsem; /* Reboot recovery lock */ | ||
52 | u32 h_state; /* pseudo-state counter */ | 53 | u32 h_state; /* pseudo-state counter */ |
53 | u32 h_nsmstate; /* true remote NSM state */ | 54 | u32 h_nsmstate; /* true remote NSM state */ |
54 | u32 h_pidcount; /* Pseudopids */ | 55 | u32 h_pidcount; /* Pseudopids */ |
55 | atomic_t h_count; /* reference count */ | 56 | atomic_t h_count; /* reference count */ |
56 | struct semaphore h_sema; /* mutex for pmap binding */ | 57 | struct mutex h_mutex; /* mutex for pmap binding */ |
57 | unsigned long h_nextrebind; /* next portmap call */ | 58 | unsigned long h_nextrebind; /* next portmap call */ |
58 | unsigned long h_expires; /* eligible for GC */ | 59 | unsigned long h_expires; /* eligible for GC */ |
59 | struct list_head h_lockowners; /* Lockowners for the client */ | 60 | struct list_head h_lockowners; /* Lockowners for the client */ |
@@ -122,7 +123,6 @@ struct nlm_block { | |||
122 | unsigned int b_id; /* block id */ | 123 | unsigned int b_id; /* block id */ |
123 | unsigned char b_queued; /* re-queued */ | 124 | unsigned char b_queued; /* re-queued */ |
124 | unsigned char b_granted; /* VFS granted lock */ | 125 | unsigned char b_granted; /* VFS granted lock */ |
125 | unsigned char b_done; /* callback complete */ | ||
126 | struct nlm_file * b_file; /* file in question */ | 126 | struct nlm_file * b_file; /* file in question */ |
127 | }; | 127 | }; |
128 | 128 | ||
@@ -219,6 +219,7 @@ static __inline__ int | |||
219 | nlm_compare_locks(const struct file_lock *fl1, const struct file_lock *fl2) | 219 | nlm_compare_locks(const struct file_lock *fl1, const struct file_lock *fl2) |
220 | { | 220 | { |
221 | return fl1->fl_pid == fl2->fl_pid | 221 | return fl1->fl_pid == fl2->fl_pid |
222 | && fl1->fl_owner == fl2->fl_owner | ||
222 | && fl1->fl_start == fl2->fl_start | 223 | && fl1->fl_start == fl2->fl_start |
223 | && fl1->fl_end == fl2->fl_end | 224 | && fl1->fl_end == fl2->fl_end |
224 | &&(fl1->fl_type == fl2->fl_type || fl2->fl_type == F_UNLCK); | 225 | &&(fl1->fl_type == fl2->fl_type || fl2->fl_type == F_UNLCK); |