diff options
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 896be2126f7e..1fb3e6c6f993 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -271,6 +271,16 @@ static void nfs4_end_drain_session(struct nfs_client *clp) | |||
271 | } | 271 | } |
272 | } | 272 | } |
273 | 273 | ||
274 | /* | ||
275 | * Signal state manager thread if session fore channel is drained | ||
276 | */ | ||
277 | void nfs4_session_drain_complete(struct nfs4_session *session, | ||
278 | struct nfs4_slot_table *tbl) | ||
279 | { | ||
280 | if (nfs4_session_draining(session)) | ||
281 | complete(&tbl->complete); | ||
282 | } | ||
283 | |||
274 | static int nfs4_wait_on_slot_tbl(struct nfs4_slot_table *tbl) | 284 | static int nfs4_wait_on_slot_tbl(struct nfs4_slot_table *tbl) |
275 | { | 285 | { |
276 | spin_lock(&tbl->slot_tbl_lock); | 286 | spin_lock(&tbl->slot_tbl_lock); |