aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p/v9fs.c')
-rw-r--r--fs/9p/v9fs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index 2f814cf0c731..0b78ae8157b9 100644
--- a/fs/9p/v9fs.c
+++ b/fs/9p/v9fs.c
@@ -342,6 +342,19 @@ void v9fs_session_cancel(struct v9fs_session_info *v9ses) {
342 p9_client_disconnect(v9ses->clnt); 342 p9_client_disconnect(v9ses->clnt);
343} 343}
344 344
345/**
346 * v9fs_session_begin_cancel - Begin terminate of a session
347 * @v9ses: session to terminate
348 *
349 * After this call we don't allow any request other than clunk.
350 */
351
352void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses)
353{
354 P9_DPRINTK(P9_DEBUG_ERROR, "begin cancel session %p\n", v9ses);
355 p9_client_begin_disconnect(v9ses->clnt);
356}
357
345extern int v9fs_error_init(void); 358extern int v9fs_error_init(void);
346 359
347static struct kobject *v9fs_kobj; 360static struct kobject *v9fs_kobj;