Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
af47c86f
Commit
af47c86f
authored
Feb 19, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix freeing of captive thread at unmount time (which was causing
unmount warning).
parent
8a98ef65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
fs/cifs/CHANGES
fs/cifs/CHANGES
+7
-0
fs/cifs/connect.c
fs/cifs/connect.c
+3
-3
No files found.
fs/cifs/CHANGES
View file @
af47c86f
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
...
...
fs/cifs/connect.c
View file @
af47c86f
...
...
@@ -76,7 +76,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
int
rc
=
0
;
struct
list_head
*
tmp
;
struct
cifsSesInfo
*
ses
;
struct
cifsTconInfo
*
tcon
;
struct
cifsTconInfo
*
tcon
;
server
->
tcpStatus
=
CifsNeedReconnect
;
server
->
maxBuf
=
0
;
...
...
@@ -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
(
SIG
INT
,
pSesInfo
->
server
->
tsk
,
1
);
send_sig
(
SIG
KILL
,
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
(
SIG
INT
,
ses
->
server
->
tsk
,
1
);
send_sig
(
SIG
KILL
,
ses
->
server
->
tsk
,
1
);
}
}
else
cFYI
(
1
,
(
"No session or bad tcon"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment