Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
61c0bb90
Commit
61c0bb90
authored
Feb 27, 2015
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3.14 sources from stable (v3.14.34)
parent
57d38b96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
file.c
sources/3.14/file.c
+5
-1
ioctl.c
sources/3.14/ioctl.c
+5
-16
No files found.
sources/3.14/file.c
View file @
61c0bb90
...
...
@@ -369,6 +369,7 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
struct
cifsLockInfo
*
li
,
*
tmp
;
struct
cifs_fid
fid
;
struct
cifs_pending_open
open
;
bool
oplock_break_cancelled
;
spin_lock
(
&
cifs_file_list_lock
);
if
(
--
cifs_file
->
count
>
0
)
{
...
...
@@ -400,7 +401,7 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
}
spin_unlock
(
&
cifs_file_list_lock
);
cancel_work_sync
(
&
cifs_file
->
oplock_break
);
oplock_break_cancelled
=
cancel_work_sync
(
&
cifs_file
->
oplock_break
);
if
(
!
tcon
->
need_reconnect
&&
!
cifs_file
->
invalidHandle
)
{
struct
TCP_Server_Info
*
server
=
tcon
->
ses
->
server
;
...
...
@@ -412,6 +413,9 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
_free_xid
(
xid
);
}
if
(
oplock_break_cancelled
)
cifs_done_oplock_break
(
cifsi
);
cifs_del_pending_open
(
&
open
);
/*
...
...
sources/3.14/ioctl.c
View file @
61c0bb90
...
...
@@ -86,21 +86,16 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
}
src_inode
=
src_file
.
file
->
f_dentry
->
d_inode
;
rc
=
-
EINVAL
;
if
(
S_ISDIR
(
src_inode
->
i_mode
))
goto
out_fput
;
/*
* Note: cifs case is easier than btrfs since server responsible for
* checks for proper open modes and file type and if it wants
* server could even support copy of range where source = target
*/
/* so we do not deadlock racing two ioctls on same files */
if
(
target_inode
<
src_inode
)
{
mutex_lock_nested
(
&
target_inode
->
i_mutex
,
I_MUTEX_PARENT
);
mutex_lock_nested
(
&
src_inode
->
i_mutex
,
I_MUTEX_CHILD
);
}
else
{
mutex_lock_nested
(
&
src_inode
->
i_mutex
,
I_MUTEX_PARENT
);
mutex_lock_nested
(
&
target_inode
->
i_mutex
,
I_MUTEX_CHILD
);
}
lock_two_nondirectories
(
target_inode
,
src_inode
);
/* determine range to clone */
rc
=
-
EINVAL
;
...
...
@@ -124,13 +119,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
out_unlock:
/* although unlocking in the reverse order from locking is not
strictly necessary here it is a little cleaner to be consistent */
if
(
target_inode
<
src_inode
)
{
mutex_unlock
(
&
src_inode
->
i_mutex
);
mutex_unlock
(
&
target_inode
->
i_mutex
);
}
else
{
mutex_unlock
(
&
target_inode
->
i_mutex
);
mutex_unlock
(
&
src_inode
->
i_mutex
);
}
unlock_two_nondirectories
(
src_inode
,
target_inode
);
out_fput:
fdput
(
src_file
);
out_drop_write:
...
...
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