LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/2] blkcg: small fix on comment in blkcg_init_queue
@ 2018-04-19  4:04 Jiang Biao
  2018-04-19 14:52 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Jiang Biao @ 2018-04-19  4:04 UTC (permalink / raw)
  To: axboe
  Cc: linux-block, linux-kernel, tj, jiang.biao2, zhong.weidong, wen.yang99

The comment before blkg_create() in blkcg_init_queue() was moved
from blkcg_activate_policy() by commit ec13b1d6f0a0457312e615, but
it does not suit for the new context.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
CC: Tejun Heo <tj@kernel.org>
CC: Jens Axboe <axboe@kernel.dk>
---
 block/blk-cgroup.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index 2b7f8d0..07e3359 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -1134,11 +1134,7 @@ int blkcg_init_queue(struct request_queue *q)
 
 	preloaded = !radix_tree_preload(GFP_KERNEL);
 
-	/*
-	 * Make sure the root blkg exists and count the existing blkgs.  As
-	 * @q is bypassing at this point, blkg_lookup_create() can't be
-	 * used.  Open code insertion.
-	 */
+	/* Make sure the root blkg exists. */
 	rcu_read_lock();
 	spin_lock_irq(q->queue_lock);
 	blkg = blkg_create(&blkcg_root, q, new_blkg);
-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] blkcg: small fix on comment in blkcg_init_queue
  2018-04-19  4:04 [PATCH 1/2] blkcg: small fix on comment in blkcg_init_queue Jiang Biao
@ 2018-04-19 14:52 ` Jens Axboe
  2018-04-19 17:10   ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2018-04-19 14:52 UTC (permalink / raw)
  To: Jiang Biao; +Cc: linux-block, linux-kernel, tj, zhong.weidong, wen.yang99

On 4/18/18 10:04 PM, Jiang Biao wrote:
> The comment before blkg_create() in blkcg_init_queue() was moved
> from blkcg_activate_policy() by commit ec13b1d6f0a0457312e615, but
> it does not suit for the new context.

Applied - btw, in the future, if you send more than one patch in
a series, please include a cover letter.

I've applied 2/2 as well.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] blkcg: small fix on comment in blkcg_init_queue
  2018-04-19 14:52 ` Jens Axboe
@ 2018-04-19 17:10   ` Randy Dunlap
  2018-04-19 17:23     ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2018-04-19 17:10 UTC (permalink / raw)
  To: Jens Axboe, Jiang Biao
  Cc: linux-block, linux-kernel, tj, zhong.weidong, wen.yang99

On 04/19/18 07:52, Jens Axboe wrote:
> On 4/18/18 10:04 PM, Jiang Biao wrote:
>> The comment before blkg_create() in blkcg_init_queue() was moved
>> from blkcg_activate_policy() by commit ec13b1d6f0a0457312e615, but
>> it does not suit for the new context.
> 
> Applied - btw, in the future, if you send more than one patch in
> a series, please include a cover letter.

Hi Jens,

Where does that cover letter requirement come from?  It's not documented
anywhere AFAICT and shouldn't be needed for such small patch series.

> I've applied 2/2 as well.

thanks,
-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] blkcg: small fix on comment in blkcg_init_queue
  2018-04-19 17:10   ` Randy Dunlap
@ 2018-04-19 17:23     ` Jens Axboe
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2018-04-19 17:23 UTC (permalink / raw)
  To: Randy Dunlap, Jiang Biao
  Cc: linux-block, linux-kernel, tj, zhong.weidong, wen.yang99

On 4/19/18 11:10 AM, Randy Dunlap wrote:
> On 04/19/18 07:52, Jens Axboe wrote:
>> On 4/18/18 10:04 PM, Jiang Biao wrote:
>>> The comment before blkg_create() in blkcg_init_queue() was moved
>>> from blkcg_activate_policy() by commit ec13b1d6f0a0457312e615, but
>>> it does not suit for the new context.
>>
>> Applied - btw, in the future, if you send more than one patch in
>> a series, please include a cover letter.
> 
> Hi Jens,
> 
> Where does that cover letter requirement come from?  It's not documented
> anywhere AFAICT and shouldn't be needed for such small patch series.

It's not a requirement, I just strongly prefer it for anything that is
more than one patch. Hence I tend to let people know about that
preference, if they send patches more than once.

It makes it possible to send comments for the series as a whole.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-19 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19  4:04 [PATCH 1/2] blkcg: small fix on comment in blkcg_init_queue Jiang Biao
2018-04-19 14:52 ` Jens Axboe
2018-04-19 17:10   ` Randy Dunlap
2018-04-19 17:23     ` Jens Axboe

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).