diff options
author | Eric Van Hensbergen <ericvh@gmail.com> | 2005-09-09 16:04:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:57 -0400 |
commit | 322b329ab787de5f45abca9c9eabfd33bc5927e8 (patch) | |
tree | 63088ab90e6677c5c74134e7cc1cfb0e0b1eae84 /fs/9p/v9fs.c | |
parent | 426cc91aa651b50713d06d45e5c3c3e90cfd40d9 (diff) |
[PATCH] v9fs: Support to force umount
Support for force umount
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p/v9fs.c')
-rw-r--r-- | fs/9p/v9fs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index a573b751dd9a..13bdbbab4387 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c | |||
@@ -409,6 +409,15 @@ void v9fs_session_close(struct v9fs_session_info *v9ses) | |||
409 | putname(v9ses->remotename); | 409 | putname(v9ses->remotename); |
410 | } | 410 | } |
411 | 411 | ||
412 | /** | ||
413 | * v9fs_session_cancel - mark transport as disconnected | ||
414 | * and cancel all pending requests. | ||
415 | */ | ||
416 | void v9fs_session_cancel(struct v9fs_session_info *v9ses) { | ||
417 | v9ses->transport->status = Disconnected; | ||
418 | v9fs_mux_cancel_requests(v9ses, -EIO); | ||
419 | } | ||
420 | |||
412 | extern int v9fs_error_init(void); | 421 | extern int v9fs_error_init(void); |
413 | 422 | ||
414 | /** | 423 | /** |