Messages in this thread | | | Date | Mon, 23 Jan 2012 08:16:19 -0800 | From | Tejun Heo <> | Subject | Re: [PATCH 08/17] blkcg: shoot down blkio_groups on elevator switch |
| |
On Mon, Jan 23, 2012 at 11:10:42AM -0500, Vivek Goyal wrote: > This does not work well in hierachical management/scenario. Think that > a user gets an upper limit of 10MB/s on a device and now user can manage > its own children groups and divide allocated 10MB/s in children the way > he wants. > > Now if root does the elevator switch, and saves all the rules (including > user's rules) and then restores back, these can very well race with > user's scripts of changing rules. If user changed a cgroup device rule > during elevator switch and after elevator switch root restored back > old rules, user's new rule will be lost leading to confusion.
It simply doesn't matter. Just declare elvswitch and policy change reset blkcg configurations. If some people are crazy enough to switch elevators regularly with full system running and parallel configuration going on, let them deal with synchronizing their scripts.
-- tejun
| |