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
b4917940
Commit
b4917940
authored
Apr 13, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: file_lock is now a spin lock.
parent
d83f0eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/sparc64/solaris/ioctl.c
arch/sparc64/solaris/ioctl.c
+3
-3
No files found.
arch/sparc64/solaris/ioctl.c
View file @
b4917940
...
...
@@ -291,15 +291,15 @@ static inline int solaris_sockmod(unsigned int fd, unsigned int cmd, u32 arg)
{
struct
inode
*
ino
;
/* I wonder which of these tests are superfluous... --patrik */
read
_lock
(
&
current
->
files
->
file_lock
);
spin
_lock
(
&
current
->
files
->
file_lock
);
if
(
!
current
->
files
->
fd
[
fd
]
||
!
current
->
files
->
fd
[
fd
]
->
f_dentry
||
!
(
ino
=
current
->
files
->
fd
[
fd
]
->
f_dentry
->
d_inode
)
||
!
ino
->
i_sock
)
{
read
_unlock
(
&
current
->
files
->
file_lock
);
spin
_unlock
(
&
current
->
files
->
file_lock
);
return
TBADF
;
}
read
_unlock
(
&
current
->
files
->
file_lock
);
spin
_unlock
(
&
current
->
files
->
file_lock
);
switch
(
cmd
&
0xff
)
{
case
109
:
/* SI_SOCKPARAMS */
...
...
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