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
1171e981
Commit
1171e981
authored
Oct 15, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some locking bugs spotted by Oleg Drokin.
parent
8472e5ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
arch/um/drivers/ubd_kern.c
arch/um/drivers/ubd_kern.c
+1
-1
arch/um/kernel/irq_user.c
arch/um/kernel/irq_user.c
+5
-5
No files found.
arch/um/drivers/ubd_kern.c
View file @
1171e981
...
@@ -968,8 +968,8 @@ static int ubd_revalidate(kdev_t rdev)
...
@@ -968,8 +968,8 @@ static int ubd_revalidate(kdev_t rdev)
set_capacity
(
fake_gendisk
[
n
],
size
/
512
);
set_capacity
(
fake_gendisk
[
n
],
size
/
512
);
dev
->
size
=
size
;
dev
->
size
=
size
;
}
}
spin_unlock
(
&
ubd_lock
);
out:
out:
spin_unlock
(
&
ubd_lock
);
return
err
;
return
err
;
}
}
...
...
arch/um/kernel/irq_user.c
View file @
1171e981
...
@@ -157,7 +157,7 @@ int activate_fd(int irq, int fd, int type, void *dev_id)
...
@@ -157,7 +157,7 @@ int activate_fd(int irq, int fd, int type, void *dev_id)
printk
(
"Registering fd %d twice
\n
"
,
fd
);
printk
(
"Registering fd %d twice
\n
"
,
fd
);
printk
(
"Irqs : %d, %d
\n
"
,
irq_fd
->
irq
,
irq
);
printk
(
"Irqs : %d, %d
\n
"
,
irq_fd
->
irq
,
irq
);
printk
(
"Ids : 0x%x, 0x%x
\n
"
,
irq_fd
->
id
,
dev_id
);
printk
(
"Ids : 0x%x, 0x%x
\n
"
,
irq_fd
->
id
,
dev_id
);
goto
out_
free
;
goto
out_
unlock
;
}
}
}
}
...
@@ -334,8 +334,10 @@ void reactivate_fd(int fd, int irqnum)
...
@@ -334,8 +334,10 @@ void reactivate_fd(int fd, int irqnum)
flags
=
irq_lock
();
flags
=
irq_lock
();
irq
=
find_irq_by_fd
(
fd
,
irqnum
,
&
i
);
irq
=
find_irq_by_fd
(
fd
,
irqnum
,
&
i
);
if
(
irq
==
NULL
)
if
(
irq
==
NULL
){
goto
out
;
irq_unlock
(
flags
);
return
;
}
pollfds
[
i
].
fd
=
irq
->
fd
;
pollfds
[
i
].
fd
=
irq
->
fd
;
irq_unlock
(
flags
);
irq_unlock
(
flags
);
...
@@ -344,8 +346,6 @@ void reactivate_fd(int fd, int irqnum)
...
@@ -344,8 +346,6 @@ void reactivate_fd(int fd, int irqnum)
* section.
* section.
*/
*/
maybe_sigio_broken
(
fd
,
irq
->
type
);
maybe_sigio_broken
(
fd
,
irq
->
type
);
out:
irq_unlock
(
flags
);
}
}
void
deactivate_fd
(
int
fd
,
int
irqnum
)
void
deactivate_fd
(
int
fd
,
int
irqnum
)
...
...
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