summaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@gmail.com>2005-09-09 13:04:23 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 13:57:57 -0700
commit322b329ab787de5f45abca9c9eabfd33bc5927e8 (patch)
tree63088ab90e6677c5c74134e7cc1cfb0e0b1eae84 /fs/9p/v9fs.c
parent426cc91aa651b50713d06d45e5c3c3e90cfd40d9 (diff)
downloadop-kernel-dev-322b329ab787de5f45abca9c9eabfd33bc5927e8.zip
op-kernel-dev-322b329ab787de5f45abca9c9eabfd33bc5927e8.tar.gz
[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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index a573b75..13bdbba 100644
--- a/fs/9p/v9fs.c
+++ b/fs/9p/v9fs.c
@@ -409,6 +409,15 @@ void v9fs_session_close(struct v9fs_session_info *v9ses)
putname(v9ses->remotename);
}
+/**
+ * v9fs_session_cancel - mark transport as disconnected
+ * and cancel all pending requests.
+ */
+void v9fs_session_cancel(struct v9fs_session_info *v9ses) {
+ v9ses->transport->status = Disconnected;
+ v9fs_mux_cancel_requests(v9ses, -EIO);
+}
+
extern int v9fs_error_init(void);
/**
OpenPOWER on IntegriCloud