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
5e5bffab
Commit
5e5bffab
authored
Feb 11, 2002
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bio_endio doesn't take nr_sectors argument anymore.
parent
14d39718
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
drivers/block/cciss.c
drivers/block/cciss.c
+3
-4
drivers/block/cpqarray.c
drivers/block/cpqarray.c
+2
-4
drivers/block/loop.c
drivers/block/loop.c
+5
-7
include/linux/nbd.h
include/linux/nbd.h
+1
-1
No files found.
drivers/block/cciss.c
View file @
5e5bffab
...
...
@@ -1673,12 +1673,11 @@ static void start_io( ctlr_info_t *h)
static
inline
void
complete_buffers
(
struct
bio
*
bio
,
int
status
)
{
while
(
bio
)
{
int
nsecs
=
bio_sectors
(
bio
);
struct
bio
*
xbh
=
bio
->
bi_next
;
bio
->
bi_next
=
NULL
;
blk_finished_io
(
nsecs
);
bio_endio
(
bio
,
status
,
nsecs
);
blk_finished_io
(
bio_sectors
(
bio
)
);
bio_endio
(
bio
,
status
);
bio
=
xbh
;
}
...
...
drivers/block/cpqarray.c
View file @
5e5bffab
...
...
@@ -970,13 +970,11 @@ static inline void complete_buffers(struct bio *bio, int ok)
{
struct
bio
*
xbh
;
while
(
bio
)
{
int
nsecs
=
bio_sectors
(
bio
);
xbh
=
bio
->
bi_next
;
bio
->
bi_next
=
NULL
;
blk_finished_io
(
nsecs
);
bio_endio
(
bio
,
ok
,
nsecs
);
blk_finished_io
(
bio_sectors
(
bio
)
);
bio_endio
(
bio
,
ok
);
bio
=
xbh
;
}
...
...
drivers/block/loop.c
View file @
5e5bffab
...
...
@@ -319,7 +319,7 @@ static int do_bio_filebacked(struct loop_device *lo, struct bio *bio)
return
ret
;
}
static
int
loop_end_io_transfer
(
struct
bio
*
,
int
);
static
void
loop_end_io_transfer
(
struct
bio
*
);
static
void
loop_put_buffer
(
struct
bio
*
bio
)
{
/*
...
...
@@ -377,21 +377,19 @@ static struct bio *loop_get_bio(struct loop_device *lo)
* bi_end_io context (we don't want to do decrypt of a page with irqs
* disabled)
*/
static
int
loop_end_io_transfer
(
struct
bio
*
bio
,
int
nr_sectors
)
static
void
loop_end_io_transfer
(
struct
bio
*
bio
)
{
struct
bio
*
rbh
=
bio
->
bi_private
;
struct
loop_device
*
lo
=
&
loop_dev
[
minor
(
rbh
->
bi_dev
)];
int
uptodate
=
test_bit
(
BIO_UPTODATE
,
&
bio
->
bi_flags
);
if
(
!
uptodate
||
bio_rw
(
bio
)
==
WRITE
)
{
bio_endio
(
rbh
,
uptodate
,
nr_sectors
);
bio_endio
(
rbh
,
uptodate
);
if
(
atomic_dec_and_test
(
&
lo
->
lo_pending
))
up
(
&
lo
->
lo_bh_mutex
);
loop_put_buffer
(
bio
);
}
else
loop_add_bio
(
lo
,
bio
);
return
0
;
}
static
struct
bio
*
loop_get_buffer
(
struct
loop_device
*
lo
,
struct
bio
*
rbh
)
...
...
@@ -511,13 +509,13 @@ static inline void loop_handle_bio(struct loop_device *lo, struct bio *bio)
*/
if
(
lo
->
lo_flags
&
LO_FLAGS_DO_BMAP
)
{
ret
=
do_bio_filebacked
(
lo
,
bio
);
bio_endio
(
bio
,
!
ret
,
bio_sectors
(
bio
)
);
bio_endio
(
bio
,
!
ret
);
}
else
{
struct
bio
*
rbh
=
bio
->
bi_private
;
ret
=
do_bio_blockbacked
(
lo
,
bio
,
rbh
);
bio_endio
(
rbh
,
!
ret
,
bio_sectors
(
rbh
)
);
bio_endio
(
rbh
,
!
ret
);
loop_put_buffer
(
bio
);
}
}
...
...
include/linux/nbd.h
View file @
5e5bffab
...
...
@@ -52,7 +52,7 @@ nbd_end_request(struct request *req)
blk_finished_io
(
nsect
);
req
->
bio
=
bio
->
bi_next
;
bio
->
bi_next
=
NULL
;
bio_endio
(
bio
,
uptodate
,
nsect
);
bio_endio
(
bio
,
uptodate
);
}
blkdev_release_request
(
req
);
spin_unlock_irqrestore
(
q
->
queue_lock
,
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