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
3a6a7111
Commit
3a6a7111
authored
Jul 02, 2009
by
Evgeny Sinelnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed legacy-1.50c Eter#4059
parent
f4bc73ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
cifs_lock_storage.c
sources/legacy/cifs_lock_storage.c
+9
-1
No files found.
sources/legacy/cifs_lock_storage.c
View file @
3a6a7111
...
...
@@ -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