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
b0200965
Commit
b0200965
authored
Oct 26, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
1cfab8d7
25f532b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
drivers/md/dm-table.c
drivers/md/dm-table.c
+12
-0
include/linux/preempt.h
include/linux/preempt.h
+1
-1
No files found.
drivers/md/dm-table.c
View file @
b0200965
...
...
@@ -489,6 +489,18 @@ int dm_get_device(struct dm_target *ti, const char *path, sector_t start,
rs
->
max_sectors
=
min_not_zero
(
rs
->
max_sectors
,
q
->
max_sectors
);
/* FIXME: Device-Mapper on top of RAID-0 breaks because DM
* currently doesn't honor MD's merge_bvec_fn routine.
* In this case, we'll force DM to use PAGE_SIZE or
* smaller I/O, just to be safe. A better fix is in the
* works, but add this for the time being so it will at
* least operate correctly.
*/
if
(
q
->
merge_bvec_fn
)
rs
->
max_sectors
=
min_not_zero
(
rs
->
max_sectors
,
(
unsigned
short
)(
PAGE_SIZE
>>
9
));
rs
->
max_phys_segments
=
min_not_zero
(
rs
->
max_phys_segments
,
q
->
max_phys_segments
);
...
...
include/linux/preempt.h
View file @
b0200965
...
...
@@ -32,8 +32,8 @@ do { \
#define preempt_enable_no_resched() \
do { \
dec_preempt_count(); \
barrier(); \
dec_preempt_count(); \
} while (0)
#define preempt_check_resched() \
...
...
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