* [PATCH] block: convert kmalloc_node to kzalloc_node
@ 2019-04-07 14:21 Tian Xianting
0 siblings, 0 replies; 5+ messages in thread
From: Tian Xianting @ 2019-04-07 14:21 UTC (permalink / raw)
To: axboe, linux-block, linux-kernel; +Cc: Tian Xianting
Use kzalloc_node to zero allocated buffer, as deadline and cfq I/O
scheduler initialization function (deadline_init_queue, cfq_init_queue)
did.
Signed-off-by: Tian Xianting <xianting_tian@126.com>
---
block/noop-iosched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/noop-iosched.c b/block/noop-iosched.c
index 2d1b15d..739e8cd 100644
--- a/block/noop-iosched.c
+++ b/block/noop-iosched.c
@@ -68,7 +68,7 @@ static int noop_init_queue(struct request_queue *q, struct elevator_type *e)
if (!eq)
return -ENOMEM;
- nd = kmalloc_node(sizeof(*nd), GFP_KERNEL, q->node);
+ nd = kzalloc_node(sizeof(*nd), GFP_KERNEL, q->node);
if (!nd) {
kobject_put(&eq->kobj);
return -ENOMEM;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] block: convert kmalloc_node to kzalloc_node
@ 2019-04-08 14:48 Tian Xianting
2019-04-08 15:02 ` Jens Axboe
2019-04-15 11:50 ` Greg KH
0 siblings, 2 replies; 5+ messages in thread
From: Tian Xianting @ 2019-04-08 14:48 UTC (permalink / raw)
To: axboe, linux-block; +Cc: stable, xianting_tian
Use kzalloc_node to zero allocated buffer, as deadline and cfq I/O
scheduler initialization function (deadline_init_queue, cfq_init_queue)
did.
Signed-off-by: Tian Xianting <xianting_tian@126.com>
---
block/noop-iosched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/noop-iosched.c b/block/noop-iosched.c
index 2d1b15d..739e8cd 100644
--- a/block/noop-iosched.c
+++ b/block/noop-iosched.c
@@ -68,7 +68,7 @@ static int noop_init_queue(struct request_queue *q, struct elevator_type *e)
if (!eq)
return -ENOMEM;
- nd = kmalloc_node(sizeof(*nd), GFP_KERNEL, q->node);
+ nd = kzalloc_node(sizeof(*nd), GFP_KERNEL, q->node);
if (!nd) {
kobject_put(&eq->kobj);
return -ENOMEM;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] block: convert kmalloc_node to kzalloc_node
2019-04-08 14:48 [PATCH] block: convert kmalloc_node to kzalloc_node Tian Xianting
@ 2019-04-08 15:02 ` Jens Axboe
2019-04-09 4:39 ` xianting_tian
2019-04-15 11:50 ` Greg KH
1 sibling, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2019-04-08 15:02 UTC (permalink / raw)
To: Tian Xianting, linux-block; +Cc: stable
On 4/8/19 8:48 AM, Tian Xianting wrote:
> Use kzalloc_node to zero allocated buffer, as deadline and cfq I/O
> scheduler initialization function (deadline_init_queue, cfq_init_queue)
> did.
noop doesn't exist in current kernels.
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re:Re: [PATCH] block: convert kmalloc_node to kzalloc_node
2019-04-08 15:02 ` Jens Axboe
@ 2019-04-09 4:39 ` xianting_tian
0 siblings, 0 replies; 5+ messages in thread
From: xianting_tian @ 2019-04-09 4:39 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-block, stable
hi axboe,
thanks a lot for your reply, the patch is based on linux stable branch 4.20.17, i saw it was tagged with "EOL" at 2019-03-19. so it won't be maintained any more?
--
发自我的网易邮箱手机智能版
在 2019-04-08 23:02:09,"Jens Axboe" <axboe@kernel.dk> 写道:
>On 4/8/19 8:48 AM, Tian Xianting wrote:
>> Use kzalloc_node to zero allocated buffer, as deadline and cfq I/O
>> scheduler initialization function (deadline_init_queue, cfq_init_queue)
>> did.
>
>noop doesn't exist in current kernels.
>
>--
>Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] block: convert kmalloc_node to kzalloc_node
2019-04-08 14:48 [PATCH] block: convert kmalloc_node to kzalloc_node Tian Xianting
2019-04-08 15:02 ` Jens Axboe
@ 2019-04-15 11:50 ` Greg KH
1 sibling, 0 replies; 5+ messages in thread
From: Greg KH @ 2019-04-15 11:50 UTC (permalink / raw)
To: Tian Xianting; +Cc: axboe, linux-block, stable
On Mon, Apr 08, 2019 at 10:48:22AM -0400, Tian Xianting wrote:
> Use kzalloc_node to zero allocated buffer, as deadline and cfq I/O
> scheduler initialization function (deadline_init_queue, cfq_init_queue)
> did.
>
> Signed-off-by: Tian Xianting <xianting_tian@126.com>
> ---
> block/noop-iosched.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-15 11:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08 14:48 [PATCH] block: convert kmalloc_node to kzalloc_node Tian Xianting
2019-04-08 15:02 ` Jens Axboe
2019-04-09 4:39 ` xianting_tian
2019-04-15 11:50 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2019-04-07 14:21 Tian Xianting
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).