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
a71f483d
Commit
a71f483d
authored
Nov 05, 2011
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtip32xx: update to new ->make_request() API
Signed-off-by:
Jens Axboe
<
axboe@kernel.dk
>
parent
0e838c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
drivers/block/mtip32xx/mtip32xx.c
drivers/block/mtip32xx/mtip32xx.c
+5
-10
No files found.
drivers/block/mtip32xx/mtip32xx.c
View file @
a71f483d
...
...
@@ -2984,10 +2984,8 @@ static const struct block_device_operations mtip_block_ops = {
* the driver data structure.
* @bio Pointer to the BIO.
*
* return value
* 0
*/
static
int
mtip_make_request
(
struct
request_queue
*
queue
,
struct
bio
*
bio
)
static
void
mtip_make_request
(
struct
request_queue
*
queue
,
struct
bio
*
bio
)
{
struct
driver_data
*
dd
=
queue
->
queuedata
;
struct
scatterlist
*
sg
;
...
...
@@ -2998,12 +2996,12 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
if
(
unlikely
(
!
bio_has_data
(
bio
)))
{
blk_queue_flush
(
queue
,
0
);
bio_endio
(
bio
,
0
);
return
0
;
return
;
}
if
(
unlikely
(
atomic_read
(
&
dd
->
eh_active
)))
{
bio_endio
(
bio
,
-
EBUSY
);
return
0
;
return
;
}
sg
=
mtip_hw_get_scatterlist
(
dd
,
&
tag
);
...
...
@@ -3015,7 +3013,7 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
"Maximum number of SGL entries exceeded"
);
bio_io_error
(
bio
);
mtip_hw_release_scatterlist
(
dd
,
tag
);
return
0
;
return
;
}
/* Create the scatter list for this bio. */
...
...
@@ -3036,11 +3034,8 @@ static int mtip_make_request(struct request_queue *queue, struct bio *bio)
bio
,
bio
->
bi_rw
&
REQ_FLUSH
,
bio_data_dir
(
bio
));
}
else
{
}
else
bio_io_error
(
bio
);
}
return
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