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
a6af37ef
Commit
a6af37ef
authored
Jun 17, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix oops on stopping cifs oplock thread when removing cifs module
parent
c42cfca4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
fs/cifs/CHANGES
fs/cifs/CHANGES
+5
-0
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+13
-9
No files found.
fs/cifs/CHANGES
View file @
a6af37ef
Version 0.80
-----------
Fix oops on stopping oplock thread when removing cifs when
built as module.
Version 0.79
------------
Fix mount options for ro (readonly), uid, gid and file and directory mode.
...
...
fs/cifs/cifsfs.c
View file @
a6af37ef
...
...
@@ -62,6 +62,9 @@ extern int cifs_umount(struct super_block *, struct cifs_sb_info *);
void
cifs_proc_init
(
void
);
void
cifs_proc_clean
(
void
);
static
DECLARE_COMPLETION
(
cifs_oplock_exited
);
static
int
cifs_read_super
(
struct
super_block
*
sb
,
void
*
data
,
const
char
*
devname
,
int
silent
)
...
...
@@ -427,7 +430,8 @@ cifs_destroy_mids(void)
"cifs_destroy_mids: error not all structures were freed
\n
"
);
if
(
kmem_cache_destroy
(
cifs_oplock_cachep
))
printk
(
KERN_WARNING
"error not all oplock structures were freed
\n
"
);}
"error not all oplock structures were freed
\n
"
);
}
static
int
cifs_oplock_thread
(
void
*
dummyarg
)
{
...
...
@@ -439,14 +443,13 @@ static int cifs_oplock_thread(void * dummyarg)
int
rc
;
daemonize
(
"cifsoplockd"
);
allow_signal
(
SIG
KILL
);
allow_signal
(
SIG
TERM
);
oplockThread
=
current
;
while
(
1
)
{
do
{
set_current_state
(
TASK_INTERRUPTIBLE
);
schedule_timeout
(
100
*
HZ
);
/* BB add missing code */
cFYI
(
1
,(
"oplock thread woken up - flush inode"
));
/* BB remove */
write_lock
(
&
GlobalMid_Lock
);
list_for_each_safe
(
tmp
,
tmp1
,
&
GlobalOplock_Q
)
{
oplock_item
=
list_entry
(
tmp
,
struct
oplock_q_entry
,
...
...
@@ -466,11 +469,10 @@ static int cifs_oplock_thread(void * dummyarg)
write_lock
(
&
GlobalMid_Lock
);
}
else
break
;
cFYI
(
1
,(
"next time through list"
));
/* BB remove */
}
write_unlock
(
&
GlobalMid_Lock
);
cFYI
(
1
,(
"next time through while loop"
));
/* BB remove */
}
}
while
(
!
signal_pending
(
current
));
complete_and_exit
(
&
cifs_oplock_exited
,
0
);
}
static
int
__init
...
...
@@ -532,8 +534,10 @@ exit_cifs(void)
cifs_destroy_inodecache
();
cifs_destroy_mids
();
cifs_destroy_request_bufs
();
if
(
oplockThread
)
send_sig
(
SIGKILL
,
oplockThread
,
1
);
if
(
oplockThread
)
{
send_sig
(
SIGTERM
,
oplockThread
,
1
);
wait_for_completion
(
&
cifs_oplock_exited
);
}
}
MODULE_AUTHOR
(
"Steve French <sfrench@us.ibm.com>"
);
...
...
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