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
486d8b9f
Commit
486d8b9f
authored
Feb 02, 2012
by
Roland Dreier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IB/srpt: Use DEFINE_SPINLOCK()/LIST_HEAD()
Signed-off-by:
Roland Dreier
<
roland@purestorage.com
>
parent
18d3e0d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.c
+2
-5
No files found.
drivers/infiniband/ulp/srpt/ib_srpt.c
View file @
486d8b9f
...
@@ -69,8 +69,8 @@ MODULE_LICENSE("Dual BSD/GPL");
...
@@ -69,8 +69,8 @@ MODULE_LICENSE("Dual BSD/GPL");
*/
*/
static
u64
srpt_service_guid
;
static
u64
srpt_service_guid
;
static
spinlock_t
srpt_dev_lock
;
/* Protects srpt_dev_list. */
static
DEFINE_SPINLOCK
(
srpt_dev_lock
);
/* Protects srpt_dev_list. */
static
struct
list_head
srpt_dev_list
;
/* List of srpt_device structures. */
static
LIST_HEAD
(
srpt_dev_list
);
/* List of srpt_device structures. */
static
unsigned
srp_max_req_size
=
DEFAULT_MAX_REQ_SIZE
;
static
unsigned
srp_max_req_size
=
DEFAULT_MAX_REQ_SIZE
;
module_param
(
srp_max_req_size
,
int
,
0444
);
module_param
(
srp_max_req_size
,
int
,
0444
);
...
@@ -4010,9 +4010,6 @@ static int __init srpt_init_module(void)
...
@@ -4010,9 +4010,6 @@ static int __init srpt_init_module(void)
goto
out
;
goto
out
;
}
}
spin_lock_init
(
&
srpt_dev_lock
);
INIT_LIST_HEAD
(
&
srpt_dev_list
);
ret
=
-
ENODEV
;
ret
=
-
ENODEV
;
srpt_target
=
target_fabric_configfs_init
(
THIS_MODULE
,
"srpt"
);
srpt_target
=
target_fabric_configfs_init
(
THIS_MODULE
,
"srpt"
);
if
(
!
srpt_target
)
{
if
(
!
srpt_target
)
{
...
...
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