lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120123195717.GM25986@redhat.com>
Date:	Mon, 23 Jan 2012 14:57:17 -0500
From:	Vivek Goyal <vgoyal@...hat.com>
To:	Tejun Heo <tj@...nel.org>
Cc:	axboe@...nel.dk, ctalbott@...gle.com, rni@...gle.com,
	linux-kernel@...r.kernel.org,
	Lennart Poettering <mzxreary@...inter.de>
Subject: Re: [PATCH 08/17] blkcg: shoot down blkio_groups on elevator switch

On Mon, Jan 23, 2012 at 11:33:35AM -0800, Tejun Heo wrote:
> On Mon, Jan 23, 2012 at 10:43:36AM -0800, Tejun Heo wrote:
> > Yeah, this is much more arguable.  I don't think it would be too
> > complex to keep per-policy granularity even w/ unified blkg managed by
> > blkcg core (we'll just need to point to separately allocated
> > per-policy data from the unified blkg and clear them selectively).
> > I'm just not convinced of its necessity.  With initial config out of
> > the way, elvs and blkcg policies don't get molested all that often.
> > 
> > I'll see how complex it actually gets.  If it isn't too much
> > complexity, yeah, why not...
> 
> Hmmm... while this isn't terribly complex, it involves considerable
> amount of churn as core layer doesn't currently know what policies are
> bound to which queues how - we'll have to add some part of that before
> shootdown change, use it there, and then later replace it with proper
> per-queue thing.  The conversion is already painful enough without
> adding another chunk to juggle around.  Given that clearing all on pol
> change isn't too crazy, how about the following?
> 
> * For now, clear unconditionally on pol/elv change.
> 
> * But structure things such that policy specific data are allocated
>   separately and on pol/elv change only those policy specific part is
>   flushed.
> 
> * Later, if deemed necessary, make the clearing of pol-specific part
>   selective.

It would be good if you add one more part to your series (say part4) to
make it happen. We probably don't want to get into mess that from kernel
version A to B we had x behavior, from B to C we broke changed it to y
and in kernel version D we restored it back to x. User space now go
figure what kernel version you are running and behave appropriately. For
distributions supporting these different kernels will become a mess.

So IMHO, if you can keep pol-specific clearing part a separate series
which gets committed in the same kernel version, would help a lot.

Thanks
Vivek
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ