Re: block: make blktrace use per-cpu buffers for message notes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jens Axboe
Date: Wednesday, May 28, 2008 - 11:22 pm

On Wed, May 28 2008, Andrew Morton wrote:

Just because you didn't review it doesn't mean it's unreviewed :-)

It's not unreviewed, it was posted on lkml and a few version were
bounced back and forth.


Sure, end result is the same though. get_cpu()/put_cpu() is cleaner,
though.


It was never on the stack, it was a global static char array. We are
still allocating memory for this, per-cpu. So I think it still makes
sense to shrink the size. It's really meant for small trace messages,
128 bytes is plenty. It's an in-kernel property, the userland app
doesn't care. So we could easily grow this in the future, should the
need arise.


Well it's probably really not, but the impact is truly minimal. But
strictly speaking, it was not -rcX material, I agree.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: block: make blktrace use per-cpu buffers for message notes, Jens Axboe, (Wed May 28, 11:22 pm)