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
Kirill Smelkov
linux
Commits
c27a298f
Commit
c27a298f
authored
Mar 26, 2003
by
Douglas Gilbert
Committed by
James Bottomley
Mar 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] block scsi_ioctl.c lk 2.5.66
This is a multi-part message in MIME format.
parent
b7709c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/block/scsi_ioctl.c
drivers/block/scsi_ioctl.c
+5
-2
No files found.
drivers/block/scsi_ioctl.c
View file @
c27a298f
...
@@ -45,7 +45,8 @@ const unsigned char scsi_command_size[8] =
...
@@ -45,7 +45,8 @@ const unsigned char scsi_command_size[8] =
#define SCSI_SENSE_BUFFERSIZE 64
#define SCSI_SENSE_BUFFERSIZE 64
#endif
#endif
int
blk_do_rq
(
request_queue_t
*
q
,
struct
block_device
*
bdev
,
struct
request
*
rq
)
static
int
blk_do_rq
(
request_queue_t
*
q
,
struct
block_device
*
bdev
,
struct
request
*
rq
)
{
{
DECLARE_COMPLETION
(
wait
);
DECLARE_COMPLETION
(
wait
);
int
err
=
0
;
int
err
=
0
;
...
@@ -368,6 +369,7 @@ static int sg_scsi_ioctl(request_queue_t *q, struct block_device *bdev,
...
@@ -368,6 +369,7 @@ static int sg_scsi_ioctl(request_queue_t *q, struct block_device *bdev,
goto
error
;
goto
error
;
switch
(
opcode
)
{
switch
(
opcode
)
{
case
SEND_DIAGNOSTIC
:
case
FORMAT_UNIT
:
case
FORMAT_UNIT
:
rq
->
timeout
=
FORMAT_UNIT_TIMEOUT
;
rq
->
timeout
=
FORMAT_UNIT_TIMEOUT
;
break
;
break
;
...
@@ -398,7 +400,8 @@ static int sg_scsi_ioctl(request_queue_t *q, struct block_device *bdev,
...
@@ -398,7 +400,8 @@ static int sg_scsi_ioctl(request_queue_t *q, struct block_device *bdev,
if
(
in_len
)
if
(
in_len
)
rq
->
flags
|=
REQ_RW
;
rq
->
flags
|=
REQ_RW
;
err
=
blk_do_rq
(
q
,
bdev
,
rq
);
blk_do_rq
(
q
,
bdev
,
rq
);
err
=
rq
->
errors
&
0xff
;
/* only 8 bit SCSI status */
if
(
err
)
{
if
(
err
)
{
if
(
rq
->
sense_len
)
if
(
rq
->
sense_len
)
if
(
copy_to_user
(
sic
->
data
,
rq
->
sense
,
rq
->
sense_len
))
if
(
copy_to_user
(
sic
->
data
,
rq
->
sense
,
rq
->
sense_len
))
...
...
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