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
c817fa04
Commit
c817fa04
authored
May 03, 2004
by
Andrew Morton
Committed by
James Bottomley
May 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] aic7xxx deadlock fix
We cannot call del_timer_sync() from within that timer's handler function!
parent
c891f36a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
drivers/scsi/aic7xxx/aic7xxx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm.c
+9
-3
No files found.
drivers/scsi/aic7xxx/aic7xxx_osm.c
View file @
c817fa04
...
@@ -3973,11 +3973,10 @@ ahc_linux_alloc_device(struct ahc_softc *ahc,
...
@@ -3973,11 +3973,10 @@ ahc_linux_alloc_device(struct ahc_softc *ahc,
}
}
static
void
static
void
ahc_linux_free_device
(
struct
ahc_softc
*
ahc
,
struct
ahc_linux_device
*
dev
)
__
ahc_linux_free_device
(
struct
ahc_softc
*
ahc
,
struct
ahc_linux_device
*
dev
)
{
{
struct
ahc_linux_target
*
targ
;
struct
ahc_linux_target
*
targ
;
del_timer_sync
(
&
dev
->
timer
);
targ
=
dev
->
target
;
targ
=
dev
->
target
;
targ
->
devices
[
dev
->
lun
]
=
NULL
;
targ
->
devices
[
dev
->
lun
]
=
NULL
;
free
(
dev
,
M_DEVBUF
);
free
(
dev
,
M_DEVBUF
);
...
@@ -3987,6 +3986,13 @@ ahc_linux_free_device(struct ahc_softc *ahc, struct ahc_linux_device *dev)
...
@@ -3987,6 +3986,13 @@ ahc_linux_free_device(struct ahc_softc *ahc, struct ahc_linux_device *dev)
ahc_linux_free_target
(
ahc
,
targ
);
ahc_linux_free_target
(
ahc
,
targ
);
}
}
static
void
ahc_linux_free_device
(
struct
ahc_softc
*
ahc
,
struct
ahc_linux_device
*
dev
)
{
del_timer_sync
(
&
dev
->
timer
);
__ahc_linux_free_device
(
ahc
,
dev
);
}
void
void
ahc_send_async
(
struct
ahc_softc
*
ahc
,
char
channel
,
ahc_send_async
(
struct
ahc_softc
*
ahc
,
char
channel
,
u_int
target
,
u_int
lun
,
ac_code
code
,
void
*
arg
)
u_int
target
,
u_int
lun
,
ac_code
code
,
void
*
arg
)
...
@@ -4697,7 +4703,7 @@ ahc_linux_dev_timed_unfreeze(u_long arg)
...
@@ -4697,7 +4703,7 @@ ahc_linux_dev_timed_unfreeze(u_long arg)
ahc_linux_run_device_queue
(
ahc
,
dev
);
ahc_linux_run_device_queue
(
ahc
,
dev
);
if
(
TAILQ_EMPTY
(
&
dev
->
busyq
)
if
(
TAILQ_EMPTY
(
&
dev
->
busyq
)
&&
dev
->
active
==
0
)
&&
dev
->
active
==
0
)
ahc_linux_free_device
(
ahc
,
dev
);
__
ahc_linux_free_device
(
ahc
,
dev
);
ahc_unlock
(
ahc
,
&
s
);
ahc_unlock
(
ahc
,
&
s
);
}
}
...
...
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