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
85d4331c
Commit
85d4331c
authored
May 30, 2002
by
Dave Jones
Committed by
Linus Torvalds
May 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dumb cpqarray init microoptimisation.
parent
247ed088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drivers/block/cpqarray.c
drivers/block/cpqarray.c
+2
-1
No files found.
drivers/block/cpqarray.c
View file @
85d4331c
...
@@ -1485,10 +1485,11 @@ static int revalidate_allvol(kdev_t dev)
...
@@ -1485,10 +1485,11 @@ static int revalidate_allvol(kdev_t dev)
int
ctlr
,
i
;
int
ctlr
,
i
;
unsigned
long
flags
;
unsigned
long
flags
;
ctlr
=
major
(
dev
)
-
MAJOR_NR
;
if
(
minor
(
dev
)
!=
0
)
if
(
minor
(
dev
)
!=
0
)
return
-
ENXIO
;
return
-
ENXIO
;
ctlr
=
major
(
dev
)
-
MAJOR_NR
;
spin_lock_irqsave
(
IDA_LOCK
(
ctlr
),
flags
);
spin_lock_irqsave
(
IDA_LOCK
(
ctlr
),
flags
);
if
(
hba
[
ctlr
]
->
usage_count
>
1
)
{
if
(
hba
[
ctlr
]
->
usage_count
>
1
)
{
spin_unlock_irqrestore
(
IDA_LOCK
(
ctlr
),
flags
);
spin_unlock_irqrestore
(
IDA_LOCK
(
ctlr
),
flags
);
...
...
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