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
8e640118
Commit
8e640118
authored
Jun 15, 2005
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scsi_wait_req to new format for blk_rq_map_kern()
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
e537a36d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib.c
+10
-7
No files found.
drivers/scsi/scsi_lib.c
View file @
8e640118
...
@@ -246,15 +246,18 @@ void scsi_wait_req(struct scsi_request *sreq, const void *cmnd, void *buffer,
...
@@ -246,15 +246,18 @@ void scsi_wait_req(struct scsi_request *sreq, const void *cmnd, void *buffer,
unsigned
bufflen
,
int
timeout
,
int
retries
)
unsigned
bufflen
,
int
timeout
,
int
retries
)
{
{
DECLARE_COMPLETION
(
wait
);
DECLARE_COMPLETION
(
wait
);
int
write
=
sreq
->
sr_data_direction
==
DMA_TO_DEVICE
;
struct
request
*
req
;
struct
request
*
req
;
if
(
bufflen
)
req
=
blk_get_request
(
sreq
->
sr_device
->
request_queue
,
write
,
req
=
blk_rq_map_kern
(
sreq
->
sr_device
->
request_queue
,
sreq
->
sr_data_direction
==
DMA_TO_DEVICE
,
buffer
,
bufflen
,
__GFP_WAIT
);
else
req
=
blk_get_request
(
sreq
->
sr_device
->
request_queue
,
READ
,
__GFP_WAIT
);
__GFP_WAIT
);
if
(
bufflen
&&
blk_rq_map_kern
(
sreq
->
sr_device
->
request_queue
,
req
,
buffer
,
bufflen
,
__GFP_WAIT
))
{
sreq
->
sr_result
=
DRIVER_ERROR
<<
24
;
blk_put_request
(
req
);
return
;
}
req
->
flags
|=
REQ_NOMERGE
;
req
->
flags
|=
REQ_NOMERGE
;
req
->
waiting
=
&
wait
;
req
->
waiting
=
&
wait
;
req
->
end_io
=
scsi_wait_req_end_io
;
req
->
end_io
=
scsi_wait_req_end_io
;
...
...
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