Commit af47c86f authored by Steve French's avatar Steve French

Fix freeing of captive thread at unmount time (which was causing

unmount warning).
parent 8a98ef65
Version 0.67
------------
Fix signal sending so that captive thread (cifsd) exits on umount
(which was causing the warning in kmem_cache_free of the request buffers
at rmmod time). This had broken as a sideeffect of the recent global
kernel change to daemonize
Version 0.66
------------
Reconnect tids and fids after session reconnection (still do not
......
......@@ -889,7 +889,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
if (pSesInfo->Suid)
CIFSSMBLogoff(xid, pSesInfo);
if(pSesInfo->server->tsk)
send_sig(SIGINT,pSesInfo->server->tsk,1);
send_sig(SIGKILL,pSesInfo->server->tsk,1);
else
cFYI(1,("Can not wake captive thread on cleanup of failed mount"));
set_current_state(TASK_INTERRUPTIBLE);
......@@ -2278,7 +2278,7 @@ cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb)
schedule_timeout(HZ / 4); /* give captive thread time to exit */
if((ses->server) && (ses->server->ssocket)) {
cFYI(1,("Waking up socket by sending it signal "));
send_sig(SIGINT,ses->server->tsk,1);
send_sig(SIGKILL,ses->server->tsk,1);
}
} else
cFYI(1, ("No session or bad tcon"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment