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
d98ce2ff
Commit
d98ce2ff
authored
Oct 05, 2003
by
Steve French
Committed by
Steve French
Oct 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list processing fixes in cifs reopen_files
parent
18257a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
fs/cifs/CHANGES
fs/cifs/CHANGES
+4
-0
fs/cifs/file.c
fs/cifs/file.c
+8
-3
No files found.
fs/cifs/CHANGES
View file @
d98ce2ff
Version 0.94
------------
Fix to list processing in reopen_files.
Version 0.93
------------
Add missing mount options including iocharset. SMP fixes in write and open.
...
...
fs/cifs/file.c
View file @
d98ce2ff
...
...
@@ -319,7 +319,7 @@ int reopen_files(struct cifsTconInfo * pTcon, struct nls_table * nlsinfo)
}
/* reopen files */
list_for_each
(
tmp
,
&
invalid_file_list
)
{
list_for_each
_safe
(
tmp
,
tmp1
,
&
invalid_file_list
)
{
/* BB need to fix above to check list end and skip entries we do not need to reopen */
open_file
=
list_entry
(
tmp
,
struct
cifsFileInfo
,
tlist
);
if
(
open_file
==
NULL
)
{
...
...
@@ -336,6 +336,12 @@ int reopen_files(struct cifsTconInfo * pTcon, struct nls_table * nlsinfo)
write_unlock
(
&
GlobalSMBSeslock
);
rc
=
cifs_reopen_file
(
file
->
f_dentry
->
d_inode
,
file
);
write_lock
(
&
GlobalSMBSeslock
);
if
(
file
->
private_data
==
NULL
)
{
tmp
=
invalid_file_list
.
next
;
tmp1
=
tmp
->
next
;
continue
;
}
list_move
(
&
open_file
->
tlist
,
&
pTcon
->
openFileList
);
if
(
rc
)
{
cFYI
(
1
,(
"reconnecting file %s failed with %d"
,
...
...
@@ -366,12 +372,11 @@ cifs_close(struct inode *inode, struct file *file)
cifs_sb
=
CIFS_SB
(
inode
->
i_sb
);
pTcon
=
cifs_sb
->
tcon
;
if
(
pSMBFile
)
{
rc
=
CIFSSMBClose
(
xid
,
pTcon
,
pSMBFile
->
netfid
);
write_lock
(
&
file
->
f_owner
.
lock
);
pSMBFile
->
invalidHandle
=
TRUE
;
list_del
(
&
pSMBFile
->
flist
);
list_del
(
&
pSMBFile
->
tlist
);
write_unlock
(
&
file
->
f_owner
.
lock
);
rc
=
CIFSSMBClose
(
xid
,
pTcon
,
pSMBFile
->
netfid
);
if
(
pSMBFile
->
search_resume_name
)
kfree
(
pSMBFile
->
search_resume_name
);
kfree
(
file
->
private_data
);
...
...
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