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
9aa8a5b1
Commit
9aa8a5b1
authored
Sep 02, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
d3e54fc0
d0d87c2c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
29 deletions
+9
-29
drivers/block/floppy.c
drivers/block/floppy.c
+4
-24
drivers/block/ll_rw_blk.c
drivers/block/ll_rw_blk.c
+4
-4
drivers/char/sonypi.h
drivers/char/sonypi.h
+1
-1
No files found.
drivers/block/floppy.c
View file @
9aa8a5b1
...
@@ -2295,16 +2295,15 @@ static inline void end_request(struct request *req, int uptodate)
...
@@ -2295,16 +2295,15 @@ static inline void end_request(struct request *req, int uptodate)
{
{
kdev_t
dev
=
req
->
rq_dev
;
kdev_t
dev
=
req
->
rq_dev
;
if
(
end_that_request_first
(
req
,
uptodate
,
req
->
hard_cur
_sectors
))
if
(
end_that_request_first
(
req
,
uptodate
,
current_count
_sectors
))
return
;
return
;
add_blkdev_randomness
(
major
(
dev
));
add_blkdev_randomness
(
major
(
dev
));
floppy_off
(
DEVICE_NR
(
dev
));
floppy_off
(
DEVICE_NR
(
dev
));
blkdev_dequeue_request
(
req
);
blkdev_dequeue_request
(
req
);
end_that_request_last
(
req
);
end_that_request_last
(
req
);
/* Get the next request */
/* We're done with the request */
req
=
elv_next_request
(
QUEUE
);
CURRENT
=
NULL
;
CURRENT
=
req
;
}
}
...
@@ -2335,27 +2334,8 @@ static void request_done(int uptodate)
...
@@ -2335,27 +2334,8 @@ static void request_done(int uptodate)
/* unlock chained buffers */
/* unlock chained buffers */
spin_lock_irqsave
(
q
->
queue_lock
,
flags
);
spin_lock_irqsave
(
q
->
queue_lock
,
flags
);
while
(
current_count_sectors
&&
CURRENT
&&
current_count_sectors
>=
req
->
current_nr_sectors
){
current_count_sectors
-=
req
->
current_nr_sectors
;
req
->
nr_sectors
-=
req
->
current_nr_sectors
;
req
->
sector
+=
req
->
current_nr_sectors
;
end_request
(
req
,
1
);
end_request
(
req
,
1
);
}
spin_unlock_irqrestore
(
q
->
queue_lock
,
flags
);
spin_unlock_irqrestore
(
q
->
queue_lock
,
flags
);
if
(
current_count_sectors
&&
CURRENT
)
{
/* "unlock" last subsector */
req
->
buffer
+=
current_count_sectors
<<
9
;
req
->
current_nr_sectors
-=
current_count_sectors
;
req
->
nr_sectors
-=
current_count_sectors
;
req
->
sector
+=
current_count_sectors
;
return
;
}
if
(
current_count_sectors
&&
!
CURRENT
)
DPRINT
(
"request list destroyed in floppy request done
\n
"
);
}
else
{
}
else
{
if
(
rq_data_dir
(
req
)
==
WRITE
)
{
if
(
rq_data_dir
(
req
)
==
WRITE
)
{
/* record write error information */
/* record write error information */
...
...
drivers/block/ll_rw_blk.c
View file @
9aa8a5b1
...
@@ -1992,11 +1992,11 @@ int end_that_request_first(struct request *req, int uptodate, int nr_sectors)
...
@@ -1992,11 +1992,11 @@ int end_that_request_first(struct request *req, int uptodate, int nr_sectors)
* not a complete bvec done
* not a complete bvec done
*/
*/
if
(
unlikely
(
nsect
>
nr_sectors
))
{
if
(
unlikely
(
nsect
>
nr_sectors
))
{
int
residual
=
(
nsect
-
nr_sectors
)
<<
9
;
int
partial
=
nr_sectors
<<
9
;
bio
->
bi_size
-=
residu
al
;
bio
->
bi_size
-=
parti
al
;
bio_iovec
(
bio
)
->
bv_offset
+=
residu
al
;
bio_iovec
(
bio
)
->
bv_offset
+=
parti
al
;
bio_iovec
(
bio
)
->
bv_len
-=
residu
al
;
bio_iovec
(
bio
)
->
bv_len
-=
parti
al
;
blk_recalc_rq_sectors
(
req
,
nr_sectors
);
blk_recalc_rq_sectors
(
req
,
nr_sectors
);
blk_recalc_rq_segments
(
req
);
blk_recalc_rq_segments
(
req
);
return
1
;
return
1
;
...
...
drivers/char/sonypi.h
View file @
9aa8a5b1
...
@@ -258,7 +258,7 @@ struct sonypi_device {
...
@@ -258,7 +258,7 @@ struct sonypi_device {
while (--n && (command)) \
while (--n && (command)) \
udelay(1); \
udelay(1); \
if (!n && (verbose || !quiet)) \
if (!n && (verbose || !quiet)) \
printk(KERN_WARNING "sonypi command failed at
" __FILE__ " : " __FUNCTION__ "(line %d)\n"
, __LINE__); \
printk(KERN_WARNING "sonypi command failed at
%s : %s(line %d)\n", __FILE__, __FUNCTION__
, __LINE__); \
}
}
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
...
...
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