From: Vivek Goyal <vgoyal@redhat.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 2/3] block: make blk-throttle.c explicitly non-modular
Date: Tue, 15 Dec 2015 08:30:58 -0500 [thread overview]
Message-ID: <20151215133058.GA20903@redhat.com> (raw)
In-Reply-To: <1450037044-27628-3-git-send-email-paul.gortmaker@windriver.com>
Paul,
This looks reasonable to me. Ccing Tejun.
Thanks
Vivek
On Sun, Dec 13, 2015 at 03:04:03PM -0500, Paul Gortmaker wrote:
> The Kconfig currently controlling compilation of this code is:
>
> config BLK_DEV_THROTTLING
> bool "Block layer bio throttling support"
>
> ...meaning that it currently is not being built as a module by anyone.
>
> Lets remove the couple traces of modularity so that when reading the
> code there is no doubt it is builtin-only.
>
> Since module_init translates to device_initcall in the non-modular
> case, the init ordering remains unchanged with this commit.
>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Cc: Jens Axboe <axboe@kernel.dk>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
> block/blk-throttle.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/block/blk-throttle.c b/block/blk-throttle.c
> index 2149a1ddbacf..bec1dedf4061 100644
> --- a/block/blk-throttle.c
> +++ b/block/blk-throttle.c
> @@ -4,7 +4,7 @@
> * Copyright (C) 2010 Vivek Goyal <vgoyal@redhat.com>
> */
>
> -#include <linux/module.h>
> +#include <linux/init.h>
> #include <linux/slab.h>
> #include <linux/blkdev.h>
> #include <linux/bio.h>
> @@ -1590,5 +1590,4 @@ static int __init throtl_init(void)
>
> return blkcg_policy_register(&blkcg_policy_throtl);
> }
> -
> -module_init(throtl_init);
> +device_initcall(throtl_init);
> --
> 2.6.1
next prev parent reply other threads:[~2015-12-15 13:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-13 20:04 [PATCH 0/3] block: avoid module usage in non-modular code Paul Gortmaker
2015-12-13 20:04 ` [PATCH 1/3] block: make genhd.c slightly more explicitly non-modular Paul Gortmaker
2015-12-13 20:04 ` [PATCH 2/3] block: make blk-throttle.c " Paul Gortmaker
2015-12-15 13:30 ` Vivek Goyal [this message]
2015-12-13 20:04 ` [PATCH 3/3] block: make noop-iosched.c " Paul Gortmaker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151215133058.GA20903@redhat.com \
--to=vgoyal@redhat.com \
--cc=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.gortmaker@windriver.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.