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
ffd11540
Commit
ffd11540
authored
Jul 07, 2009
by
Evgeny Sinelnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix RT#10754 like Eter#4059 for SLES
parent
3205c8d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
cifs_lock_storage.c
sources/2.6.16/cifs_lock_storage.c
+9
-1
No files found.
sources/2.6.16/cifs_lock_storage.c
View file @
ffd11540
...
...
@@ -51,10 +51,18 @@ struct cifsPidTree {
static
struct
cifsPidTree
*
LOCK_STORAGE
;
static
struct
mutex
storage_mutex
;
static
__u32
cifsRandStart
;
static
__u32
cifs_random
(
void
)
{
return
cifsRandStart
=
(
8253729
*
cifsRandStart
+
2396403
);
}
void
cifs_lock_storage_init
(
void
)
{
mutex_init
(
&
storage_mutex
);
LOCK_STORAGE
=
NULL
;
cifsRandStart
=
jiffies
;
}
static
int
vertex_init
(
struct
cifsPidTree
**
root
,
__u32
pid
)
...
...
@@ -65,7 +73,7 @@ static int vertex_init(struct cifsPidTree **root, __u32 pid)
}
(
*
root
)
->
pid
=
pid
;
(
*
root
)
->
left
=
(
*
root
)
->
right
=
NULL
;
(
*
root
)
->
priority
=
((
get_random_int
()
<<
16
)
^
get_random_int
());
(
*
root
)
->
priority
=
((
cifs_random
()
<<
16
)
^
cifs_random
());
INIT_LIST_HEAD
(
&
(
*
root
)
->
lock_list
);
return
0
;
}
...
...
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