diff options
author | Steve French <sfrench@us.ibm.com> | 2008-04-15 18:40:48 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-04-15 18:40:48 +0000 |
commit | 5d941ca628a142f44d7a2440fe919f8e8691f590 (patch) | |
tree | fb1028cc422187b2507f3830eac5dfc92c7eb29d /fs/cifs/connect.c | |
parent | e48d199ba10bb8267f491a3a585ca4a833e950a4 (diff) |
[CIFS] Fix oops when slow oplock process races with unmount
If a tcon is being freed in call tconInfoFree, clean up any entries that may
exist in global oplock queue as the tcon structure hanging off of those entries
will be invalid and can cause oops while accesing any elements in the
tcon structure.
Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 8dbfa97cd18c..e17106730168 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3527,6 +3527,7 @@ cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb) FreeXid(xid); return 0; } + DeleteTconOplockQEntries(cifs_sb->tcon); tconInfoFree(cifs_sb->tcon); if ((ses) && (ses->server)) { /* save off task so we do not refer to ses later */ |