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
9f12c416
Commit
9f12c416
authored
Feb 04, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Feb 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] paride cleanup and fixes (5/25)
pd_busy gone - we can check for pd_req != NULL instead.
parent
bca77c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
drivers/block/paride/pd.c
drivers/block/paride/pd.c
+1
-5
No files found.
drivers/block/paride/pd.c
View file @
9f12c416
...
...
@@ -309,7 +309,6 @@ static char pd_scratch[512]; /* scratch block buffer */
static
struct
pd_unit
*
pd_current
;
/* current request's drive */
static
int
pd_retries
=
0
;
/* i/o error retry count */
static
int
pd_busy
=
0
;
/* request being processed ? */
static
struct
request
*
pd_req
;
/* current request */
static
int
pd_block
;
/* address of next requested block */
static
int
pd_count
;
/* number of blocks still to do */
...
...
@@ -763,13 +762,11 @@ static void do_pd_request1(request_queue_t * q)
pd_buf
=
pd_req
->
buffer
;
pd_retries
=
0
;
pd_busy
=
1
;
if
(
pd_cmd
==
READ
)
pi_do_claimed
(
pd_current
->
pi
,
do_pd_read
);
else
if
(
pd_cmd
==
WRITE
)
pi_do_claimed
(
pd_current
->
pi
,
do_pd_write
);
else
{
pd_busy
=
0
;
end_request
(
pd_req
,
0
);
goto
repeat
;
}
...
...
@@ -777,7 +774,7 @@ static void do_pd_request1(request_queue_t * q)
static
void
do_pd_request
(
request_queue_t
*
q
)
{
if
(
pd_
busy
)
if
(
pd_
req
)
return
;
do_pd_request1
(
q
);
}
...
...
@@ -808,7 +805,6 @@ static inline void next_request(int success)
spin_lock_irqsave
(
&
pd_lock
,
saved_flags
);
end_request
(
pd_req
,
success
);
pd_busy
=
0
;
do_pd_request1
(
pd_queue
);
spin_unlock_irqrestore
(
&
pd_lock
,
saved_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