Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c84a301d
Commit
c84a301d
authored
Jan 25, 2010
by
Jens Axboe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-jens' of
git://git.drbd.org/linux-2.6-drbd
into for-linus
parents
f6760aa0
d3db7b48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_main.c
+1
-1
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_receiver.c
+1
-1
No files found.
drivers/block/drbd/drbd_main.c
View file @
c84a301d
...
@@ -2973,7 +2973,6 @@ struct drbd_conf *drbd_new_device(unsigned int minor)
...
@@ -2973,7 +2973,6 @@ struct drbd_conf *drbd_new_device(unsigned int minor)
goto
out_no_q
;
goto
out_no_q
;
mdev
->
rq_queue
=
q
;
mdev
->
rq_queue
=
q
;
q
->
queuedata
=
mdev
;
q
->
queuedata
=
mdev
;
blk_queue_max_segment_size
(
q
,
DRBD_MAX_SEGMENT_SIZE
);
disk
=
alloc_disk
(
1
);
disk
=
alloc_disk
(
1
);
if
(
!
disk
)
if
(
!
disk
)
...
@@ -2997,6 +2996,7 @@ struct drbd_conf *drbd_new_device(unsigned int minor)
...
@@ -2997,6 +2996,7 @@ struct drbd_conf *drbd_new_device(unsigned int minor)
q
->
backing_dev_info
.
congested_data
=
mdev
;
q
->
backing_dev_info
.
congested_data
=
mdev
;
blk_queue_make_request
(
q
,
drbd_make_request_26
);
blk_queue_make_request
(
q
,
drbd_make_request_26
);
blk_queue_max_segment_size
(
q
,
DRBD_MAX_SEGMENT_SIZE
);
blk_queue_bounce_limit
(
q
,
BLK_BOUNCE_ANY
);
blk_queue_bounce_limit
(
q
,
BLK_BOUNCE_ANY
);
blk_queue_merge_bvec
(
q
,
drbd_merge_bvec
);
blk_queue_merge_bvec
(
q
,
drbd_merge_bvec
);
q
->
queue_lock
=
&
mdev
->
req_lock
;
/* needed since we use */
q
->
queue_lock
=
&
mdev
->
req_lock
;
/* needed since we use */
...
...
drivers/block/drbd/drbd_receiver.c
View file @
c84a301d
...
@@ -1224,7 +1224,7 @@ static int receive_Barrier(struct drbd_conf *mdev, struct p_header *h)
...
@@ -1224,7 +1224,7 @@ static int receive_Barrier(struct drbd_conf *mdev, struct p_header *h)
epoch
=
kmalloc
(
sizeof
(
struct
drbd_epoch
),
GFP_NOIO
);
epoch
=
kmalloc
(
sizeof
(
struct
drbd_epoch
),
GFP_NOIO
);
if
(
!
epoch
)
{
if
(
!
epoch
)
{
dev_warn
(
DEV
,
"Allocation of an epoch failed, slowing down
\n
"
);
dev_warn
(
DEV
,
"Allocation of an epoch failed, slowing down
\n
"
);
issue_flush
=
!
test_and_set_bit
(
DE_BARRIER_IN_NEXT_EPOCH_ISSUED
,
&
epoch
->
flags
);
issue_flush
=
!
test_and_set_bit
(
DE_BARRIER_IN_NEXT_EPOCH_ISSUED
,
&
mdev
->
current_
epoch
->
flags
);
drbd_wait_ee_list_empty
(
mdev
,
&
mdev
->
active_ee
);
drbd_wait_ee_list_empty
(
mdev
,
&
mdev
->
active_ee
);
if
(
issue_flush
)
{
if
(
issue_flush
)
{
rv
=
drbd_flush_after_epoch
(
mdev
,
mdev
->
current_epoch
);
rv
=
drbd_flush_after_epoch
(
mdev
,
mdev
->
current_epoch
);
...
...
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