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
267033f6
Commit
267033f6
authored
Feb 04, 2003
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move queue_depth check from scsi_prep_fn to scsi_request_fn
parent
79e99219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib.c
+3
-4
No files found.
drivers/scsi/scsi_lib.c
View file @
267033f6
...
...
@@ -814,8 +814,6 @@ int scsi_prep_fn(struct request_queue *q, struct request *req)
SRpnt
=
(
Scsi_Request
*
)
req
->
special
;
if
(
SRpnt
->
sr_magic
==
SCSI_REQ_MAGIC
)
{
if
(
SDpnt
->
device_busy
>=
SDpnt
->
queue_depth
)
return
BLKPREP_DEFER
;
SCpnt
=
scsi_get_command
(
SRpnt
->
sr_device
,
GFP_ATOMIC
);
if
(
!
SCpnt
)
return
BLKPREP_DEFER
;
...
...
@@ -827,8 +825,6 @@ int scsi_prep_fn(struct request_queue *q, struct request *req)
* Now try and find a command block that we can use.
*/
if
(
!
req
->
special
)
{
if
(
SDpnt
->
device_busy
>=
SDpnt
->
queue_depth
)
return
BLKPREP_DEFER
;
SCpnt
=
scsi_get_command
(
SDpnt
,
GFP_ATOMIC
);
if
(
unlikely
(
!
SCpnt
))
return
BLKPREP_DEFER
;
...
...
@@ -951,6 +947,9 @@ void scsi_request_fn(request_queue_t * q)
*/
req
=
elv_next_request
(
q
);
if
(
SDpnt
->
device_busy
>=
SDpnt
->
queue_depth
)
break
;
if
(
SHpnt
->
host_busy
==
0
&&
SHpnt
->
host_blocked
)
{
/* unblock after host_blocked iterates to zero */
if
(
--
SHpnt
->
host_blocked
==
0
)
{
...
...
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