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
Kirill Smelkov
linux
Commits
ca84b31a
Commit
ca84b31a
authored
Jul 29, 2003
by
Steve French
Committed by
Steve French
Jul 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix oops in cifs reopen files (restoring state after server comes back from failure)
parent
5bb2dc6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
fs/cifs/CHANGES
fs/cifs/CHANGES
+2
-1
fs/cifs/connect.c
fs/cifs/connect.c
+1
-1
fs/cifs/file.c
fs/cifs/file.c
+4
-3
No files found.
fs/cifs/CHANGES
View file @
ca84b31a
Version 0.85
Version 0.85
------------
------------
Fix oops in mkdir when server fails to return inode info.
Fix oops in mkdir when server fails to return inode info. Fix oops in reopen_files
during auto reconnection to server after server recovered from failure.
Version 0.84
Version 0.84
------------
------------
...
...
fs/cifs/connect.c
View file @
ca84b31a
...
@@ -251,7 +251,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
...
@@ -251,7 +251,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
/* iov.iov_base = smb_buffer+total_read;
/* iov.iov_base = smb_buffer+total_read;
iov.iov_len = pdu_length-total_read; */
iov.iov_len = pdu_length-total_read; */
length
=
sock_recvmsg
(
csocket
,
&
smb_msg
,
length
=
sock_recvmsg
(
csocket
,
&
smb_msg
,
pdu_length
-
total_read
,
0
);
pdu_length
-
total_read
,
0
);
/* cERROR(1,("For iovlen %d Length received: %d with total read %d",
/* cERROR(1,("For iovlen %d Length received: %d with total read %d",
iov.iov_len, length,total_read)); */
iov.iov_len, length,total_read)); */
if
(
length
==
0
)
{
if
(
length
==
0
)
{
...
...
fs/cifs/file.c
View file @
ca84b31a
...
@@ -190,12 +190,14 @@ int reopen_files(struct cifsTconInfo * pTcon, struct nls_table * nlsinfo)
...
@@ -190,12 +190,14 @@ int reopen_files(struct cifsTconInfo * pTcon, struct nls_table * nlsinfo)
/* list all files open on tree connection */
/* list all files open on tree connection */
read_lock
(
&
GlobalSMBSeslock
);
read_lock
(
&
GlobalSMBSeslock
);
list_for_each_safe
(
tmp
,
tmp1
,
&
pTcon
->
openFileList
)
{
list_for_each_safe
(
tmp
,
tmp1
,
&
pTcon
->
openFileList
)
{
open_file
=
list_entry
(
tmp
,
struct
cifsFileInfo
,
f
list
);
open_file
=
list_entry
(
tmp
,
struct
cifsFileInfo
,
t
list
);
if
(
open_file
)
{
if
(
open_file
)
{
if
(
open_file
->
search_resume_name
)
{
if
(
open_file
->
search_resume_name
)
{
kfree
(
open_file
->
search_resume_name
);
kfree
(
open_file
->
search_resume_name
);
}
}
file
=
open_file
->
pfile
;
file
=
open_file
->
pfile
;
list_del
(
&
open_file
->
flist
);
list_del
(
&
open_file
->
tlist
);
kfree
(
open_file
);
kfree
(
open_file
);
if
(
file
)
{
if
(
file
)
{
file
->
private_data
=
NULL
;
file
->
private_data
=
NULL
;
...
@@ -232,8 +234,7 @@ cifs_close(struct inode *inode, struct file *file)
...
@@ -232,8 +234,7 @@ cifs_close(struct inode *inode, struct file *file)
pTcon
=
cifs_sb
->
tcon
;
pTcon
=
cifs_sb
->
tcon
;
if
(
pSMBFile
)
{
if
(
pSMBFile
)
{
write_lock
(
&
file
->
f_owner
.
lock
);
write_lock
(
&
file
->
f_owner
.
lock
);
if
(
pSMBFile
->
flist
.
next
)
list_del
(
&
pSMBFile
->
flist
);
list_del
(
&
pSMBFile
->
flist
);
list_del
(
&
pSMBFile
->
tlist
);
list_del
(
&
pSMBFile
->
tlist
);
write_unlock
(
&
file
->
f_owner
.
lock
);
write_unlock
(
&
file
->
f_owner
.
lock
);
rc
=
CIFSSMBClose
(
xid
,
pTcon
,
pSMBFile
->
netfid
);
rc
=
CIFSSMBClose
(
xid
,
pTcon
,
pSMBFile
->
netfid
);
...
...
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