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
64f9b683
Commit
64f9b683
authored
Mar 13, 2015
by
Jens Axboe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' into for-4.1/core
parents
c202baf0
9a30b096
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
block/blk-mq.c
block/blk-mq.c
+3
-3
drivers/block/nbd.c
drivers/block/nbd.c
+4
-4
mm/page-writeback.c
mm/page-writeback.c
+1
-1
No files found.
block/blk-mq.c
View file @
64f9b683
...
...
@@ -1938,7 +1938,7 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
*/
if
(
percpu_ref_init
(
&
q
->
mq_usage_counter
,
blk_mq_usage_counter_release
,
PERCPU_REF_INIT_ATOMIC
,
GFP_KERNEL
))
goto
err_m
ap
;
goto
err_m
q_usage
;
setup_timer
(
&
q
->
timeout
,
blk_mq_rq_timer
,
(
unsigned
long
)
q
);
blk_queue_rq_timeout
(
q
,
30000
);
...
...
@@ -1981,7 +1981,7 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
blk_mq_init_cpu_queues
(
q
,
set
->
nr_hw_queues
);
if
(
blk_mq_init_hw_queues
(
q
,
set
))
goto
err_
hw
;
goto
err_
mq_usage
;
mutex_lock
(
&
all_q_mutex
);
list_add_tail
(
&
q
->
all_q_node
,
&
all_q_list
);
...
...
@@ -1993,7 +1993,7 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
return
q
;
err_
hw
:
err_
mq_usage
:
blk_cleanup_queue
(
q
);
err_hctxs:
kfree
(
map
);
...
...
drivers/block/nbd.c
View file @
64f9b683
...
...
@@ -803,10 +803,6 @@ static int __init nbd_init(void)
return
-
EINVAL
;
}
nbd_dev
=
kcalloc
(
nbds_max
,
sizeof
(
*
nbd_dev
),
GFP_KERNEL
);
if
(
!
nbd_dev
)
return
-
ENOMEM
;
part_shift
=
0
;
if
(
max_part
>
0
)
{
part_shift
=
fls
(
max_part
);
...
...
@@ -828,6 +824,10 @@ static int __init nbd_init(void)
if
(
nbds_max
>
1UL
<<
(
MINORBITS
-
part_shift
))
return
-
EINVAL
;
nbd_dev
=
kcalloc
(
nbds_max
,
sizeof
(
*
nbd_dev
),
GFP_KERNEL
);
if
(
!
nbd_dev
)
return
-
ENOMEM
;
for
(
i
=
0
;
i
<
nbds_max
;
i
++
)
{
struct
gendisk
*
disk
=
alloc_disk
(
1
<<
part_shift
);
if
(
!
disk
)
...
...
mm/page-writeback.c
View file @
64f9b683
...
...
@@ -922,7 +922,7 @@ static void global_update_bandwidth(unsigned long thresh,
unsigned
long
now
)
{
static
DEFINE_SPINLOCK
(
dirty_lock
);
static
unsigned
long
update_time
;
static
unsigned
long
update_time
=
INITIAL_JIFFIES
;
/*
* check locklessly first to optimize away locking for the most time
...
...
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