Re: [PATCH 23/32] Generic dynamic per cpu refcounting

2013-02-08 Thread Tejun Heo
(cc'ing Andrew) On Wed, Dec 26, 2012 at 06:00:02PM -0800, Kent Overstreet wrote: > This implements a refcount with similar semantics to > atomic_get()/atomic_dec_and_test(), that starts out as just an atomic_t > but dynamically switches to per cpu refcounting when the rate of > gets/puts becomes t

[PATCH 1/6] idr: fix top layer handling

2013-02-08 Thread Tejun Heo
h, enlarge pa[] arrays by one. While this plugs the discovered issues, the whole code base is horrible and in desparate need of rewrite. It's fragile like hell, difficult to read and maintain, and plain ugly. Signed-off-by: Tejun Heo Cc: sta...@vger.kernel.org --- Andrew, these are furth

[PATCH 2/6] idr: remove MAX_IDR_MASK and move left MAX_IDR_* into idr.c

2013-02-08 Thread Tejun Heo
and relocate other MAX_IDR_* constants to lib/idr.c. Signed-off-by: Tejun Heo Cc: Jean Delvare Cc: linux-...@vger.kernel.org Cc: Roland Dreier Cc: Sean Hefty Cc: Hal Rosenstock Cc: "Marciniszyn, Mike" Cc: Jack Morgenstein Cc: Or Gerlitz Cc: linux-r...@vger.kernel.org Cc: Al Viro

[PATCH 3/6] idr: remove length restriction from idr_layer->bitmap

2013-02-08 Thread Tejun Heo
with bitmap_clear(). This patch doesn't (or at least shouldn't) introduce any behavior changes. Signed-off-by: Tejun Heo --- include/linux/idr.h | 12 +--- lib/idr.c | 34 +- 2 files changed, 18 insertions(+), 28 deletions(-) ---

[PATCH 4/6] idr: make idr_layer larger

2013-02-08 Thread Tejun Heo
n the previous 6 on 64bit and 7 on 32bit. Signed-off-by: Tejun Heo --- include/linux/idr.h | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) --- a/include/linux/idr.h +++ b/include/linux/idr.h @@ -17,14 +17,13 @@ #include #include -#if BITS_PER_LONG == 32 -# define IDR_B

[PATCH 5/6] idr: add idr_layer->prefix

2013-02-08 Thread Tejun Heo
Add a field which carries the prefix of ID the idr_layer covers. This will be used to implement lookup hint. This patch doesn't make use of the new field and doesn't introduce any behavior difference. Signed-off-by: Tejun Heo --- include/linux/idr.h |1 + lib/idr.c

[PATCH 6/6] idr: implement lookup hint

2013-02-08 Thread Tejun Heo
which can be inlined. idr->hint is set to the leaf node on idr_fill_slot() and cleared from free_layer(). Signed-off-by: Tejun Heo --- include/linux/idr.h | 25 - lib/idr.c | 38 -- 2 files changed, 40 insertions(+)

Re: [PATCH 2/6] idr: remove MAX_IDR_MASK and move left MAX_IDR_* into idr.c

2013-02-09 Thread Tejun Heo
Hello, On Fri, Feb 08, 2013 at 10:09:13PM +, Hefty, Sean wrote: > > Used to wrap cyclic @start. Can be replaced with max(next, 0). > > Note that this type of cyclic allocation using idr is buggy. These > > are prone to spurious -ENOSPC failure after the first wraparound. > > The repla

Re: [PATCH 1/2] stop_machine: check work->done while handling enqueued works

2013-02-09 Thread Tejun Heo
Hello, Hillf. On Fri, Feb 08, 2013 at 11:39:56AM +0800, Hillf Danton wrote: > The comment just above cpu_stop_signal_done() says it is uncertain that > the input @done is valid, and the works enqueued through the function > stop_one_cpu_nowait() do carry no done, thus we have to check if it is > v

Re: [PATCH 2/2] stop_machine: dequeue work before signal completion

2013-02-09 Thread Tejun Heo
Hello, again. On Fri, Feb 08, 2013 at 11:42:43AM +0800, Hillf Danton wrote: > As checked with BUG_ON in the case of CPU_UP_PREPARE, we have to dequeue > work first for further actions, then stopper reaches sane and clear state. When a CPU is finally put down in either CPU_UP_CANCELLED or CPU_POST

Re: [PATCH 04/25] ipw2x00: simplify scan_event handling

2013-02-09 Thread Tejun Heo
On Mon, Jan 28, 2013 at 12:02:27AM +0300, Stanislav Yakovlev wrote: > Hello, Tejun, > > On 22 December 2012 04:56, Tejun Heo wrote: > > * Drop unnesssary delayd_work_pending() tests. > > > > * Unify scan_event_{now|later} by using mod_delayed_work() w/ 0 del

Re: Re: [PATCH 10/25] kprobes: fix wait_for_kprobe_optimizer()

2013-02-09 Thread Tejun Heo
On Tue, Jan 29, 2013 at 08:53:18PM +0900, Masami Hiramatsu wrote: > >> Acked-by: Masami Hiramatsu > > > > Can I take it through workqueue branch w/ other patches? > > Yes, of course. I think it is not a critical bug, so I can > wait for other patches. Applied to wq/for-3.9-cleanups. Thanks! -

Re: [PATCH 20/25] wimax/i2400m: fix i2400m->wake_tx_skb handling

2013-02-09 Thread Tejun Heo
On Fri, Jan 04, 2013 at 03:19:55PM -0600, Dan Williams wrote: > On Fri, 2012-12-21 at 17:57 -0800, Tejun Heo wrote: > > i2400m_net_wake_tx() sets ->wake_tx_skb with the given skb if > > ->wake_tx_ws is not pending; however, i2400m_wake_tx_work() could have > > just st

Re: [PATCH 1/6] idr: fix top layer handling

2013-02-12 Thread Tejun Heo
Hey, Andrew. On Mon, Feb 11, 2013 at 03:39:55PM -0800, Andrew Morton wrote: > This doesn't apply happily to 3.7, so Greg will be needing a redone > version when the time arrives. > > But does it really need backporting? Is anyone likely to hit this in > practice? For most cases, probably not.

Re: [PATCH v2] lib/scatterlist: add simple page iterator

2013-02-12 Thread Tejun Heo
Hello, On Tue, Feb 12, 2013 at 07:07:20PM +0200, Imre Deak wrote: > It's the one implemented by sg_miter_{start,stop} in scatterlist.c. It > also iterates through a scatterlist a page at a time, but it also kmaps > these pages. Since in our use case we don't need to map the pages we > needed a sol

Re: [PATCH] drm: missing idr_preload_end in drm_gem_flink_ioctl

2013-02-12 Thread Tejun Heo
spin_unlock(&dev->object_name_lock); > + idr_preload_end(); > ret = 0; Oops, sorry about that. Acked-by: Tejun Heo Andrew, the original patch can be found at http://article.gmane.org/gmane.linux.kernel/1439101/raw Thanks. -- tejun -- To uns

[PATCH -mm] i2c: style cleanups after idr_alloc() conversion

2013-02-12 Thread Tejun Heo
Style cleanups suggested by Wolfram. * s/res/id/ in i2c_add_numbered_adapter() so that it matches i2c_add_adapter(). * Add a blank line before return in i2c_add_numbered_adapter(). This patch is purely cosmetic. Signed-off-by: Tejun Heo Cc: Wolfram Sang --- drivers/i2c/i2c-core.c | 13

Re: [PATCH -mm] i2c: style cleanups after idr_alloc() conversion

2013-02-12 Thread Tejun Heo
On Tue, Feb 12, 2013 at 09:34:14AM -0800, Tejun Heo wrote: > Style cleanups suggested by Wolfram. > > * s/res/id/ in i2c_add_numbered_adapter() so that it matches > i2c_add_adapter(). > > * Add a blank line before return in i2c_add_numbered_adapter(). > > This

Re: [PATCH 1/2] stop_machine: check work->done while handling enqueued works

2013-02-12 Thread Tejun Heo
pdating @done->ret. > > Thanks Tejun for sharing commit message. > > Signed-off-by: Hillf Danton > Reviewed-by: Namhyung Kim Acked-by: Tejun Heo Andrew, can you please take this? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-ke

Re: [PATCH 2/2] stop_machine: dequeue work before signal completion

2013-02-12 Thread Tejun Heo
lls and most, if not all, cpu stop users pin target CPUs. > > Fix it by popping each work item off stopper->works. > > Thanks Tejun for sharing commit message, again. > > Signed-off-by: Hillf Danton > Reviewed-by: Namhyung Kim > Cc: sta...@vger.kernel.org Acked

Re: [3.8-rc7] PCI hotplug wakeup oops

2013-02-12 Thread Tejun Heo
Hey, Rafael. On Tue, Feb 12, 2013 at 09:53:08PM +0100, Rafael J. Wysocki wrote: > This looks fishy, but I wonder if Tejun has any ideas. > > Tejun, can you please have a look at the call trace below? It looks like > the workqueues code is involved heavily. > > > > kworker/0:0/4 is trying to acq

Re: compositing broken in -next (idr bug)

2013-02-12 Thread Tejun Heo
it: > commit 430440fce7da4ad52c2af06a04a5132e5d19faaf > Author: Tejun Heo > Date: Thu Feb 7 12:31:37 2013 +1100 > > drm: convert to idr_alloc() > > > More concretely to the change in drm_gem_flink_ioctl. If I revert solely > that one, it works again. Maybe I'm blind, but I do not see why

Re: compositing broken in -next (idr bug)

2013-02-12 Thread Tejun Heo
Hello, Jiri. On Tue, Feb 12, 2013 at 11:08:41PM +0100, Jiri Slaby wrote: > > Oh my, maybe: return ret < 0 ? ret : 0... Let's try. > > Bull's eye. Aieee > --- a/drivers/gpu/drm/drm_gem.c > +++ b/drivers/gpu/drm/drm_gem.c > @@ -459,6 +459,7 @@ drm_gem_flink_ioctl(struct drm_device *dev, void

Re: [GIT PULL] writeback: convert writeback to unbound workqueue

2013-04-02 Thread Tejun Heo
Hello, Jens. On Tue, Apr 2, 2013 at 2:53 AM, Jens Axboe wrote: > Thanks, pulled in for testing. We'll need the debug change in before > sending this upstream, though. I agree with Jan/Dave that this is > required functionality, for debugging purposes. Yeah, sure thing. The debug changes are targ

Re: [PATCH v2 5/5] dump_stack: unify debug information printed by show_regs()

2013-04-02 Thread Tejun Heo
Hello, Vineet. On Sat, Mar 30, 2013 at 11:43:11AM +0530, Vineet Gupta wrote: > Although in line [2], ARC trouble-shooting code prints the task path (rather > than > comm). This was done to help identify faulting LTP open posix tests with same > name > in different directories: e.g. fork/6-1, sig

Re: [PATCH 4/5] dump_stack: implement arch-specific hardware description in task dumps

2013-04-02 Thread Tejun Heo
Hello, On Mon, Apr 01, 2013 at 12:11:17PM -0600, Bjorn Helgaas wrote: > > + dump_stack_set_arch_desc("%s %s%s%s", vendor, product, > > +board ? "/" : "", board ? board : ""); > > +} > > Should this be combined or made consistent with dmi_dump_ids()? They > l

Re: [PATCH 3/5] dump_stack: consolidate dump_stack() implementations and unify their behaviors

2013-04-02 Thread Tejun Heo
Hello, Martin. On Tue, Apr 02, 2013 at 08:48:08AM +0200, Martin Schwidefsky wrote: > > The couple of extra fields aren't worth an s390 version of dump_stack() > > that differs from all other architectures. > > Please drop the s390 version as well. Thanks! > > Hmm, we would lose task_thread_info(c

[PATCHSET v2] arch: unify task dump debug info

2013-04-03 Thread Tejun Heo
Hello, Andrew, I think it's about ready and nobody seems to be against the proposed changes. Can you please take these into -mm? This v2 of this patchset. Changes from the last posting[1] are, * CPU is now printed for both dump_stack() and show_regs() which s390 folks tell me should be enoug

[PATCH 1/7] x86: don't show trace beyond show_stack(NULL, NULL)

2013-04-03 Thread Tejun Heo
tack(NULL, NULL)'s behavior in line with dump_stack(). Signed-off-by: Tejun Heo --- arch/x86/kernel/dumpstack.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index c8797d5..dd1a7c3 100644 -

[PATCH 2/7] sparc32: make show_stack() acquire %fp if @_ksp is not specified

2013-04-03 Thread Tejun Heo
d @_ksp is NULL. This makes %fp fetching in dump_stack() unnecessary. Make it use NULL for @_ksp instead. Only compile tested. Signed-off-by: Tejun Heo Acked-by: David S. Miller --- arch/sparc/kernel/process_32.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --

[PATCH 3/7] dump_stack: consolidate dump_stack() implementations and unify their behaviors

2013-04-03 Thread Tejun Heo
dump_stack_print_info() as that will bring in the generic version of dump_stack() too. v1 The v1 patch broke build on blackfin due to this issue. The build breakage was reported by Fengguang Wu. Signed-off-by: Tejun Heo Acked-by: David S. Miller Acked-by: Vineet Gupta Acked-by: Je

[PATCH 5/7] dump_stack: implement arch-specific hardware description in task dumps

2013-04-03 Thread Tejun Heo
he same string as the debug message from dmi_present() which also contains BIOS information. Move hardware name into its own line as warn_slowpath_common() did. This change was suggested by Bjorn Helgaas. Signed-off-by: Tejun Heo Cc: Bjorn Helgaas --- arch/ia64/kernel/setup.c

[PATCH 6/7] dump_stack: unify debug information printed by show_regs()

2013-04-03 Thread Tejun Heo
est_init+0x140/0x140 ... v2: Typo fix in x86-32. v3: CPU number dropped from show_regs_print_info() as dump_stack_print_info() has been updated to print it. s390 specific implementation dropped as requested by s390 maintainers. Signed-off-by: Tejun Heo Acked-by: David S. Miller Acke

[PATCH 7/7] arc, print-fatal-signals: reduce duplicated information

2013-04-03 Thread Tejun Heo
id: 50, comm: crash Not tainted 3.9.0-rc4+ #132 <-- [3] ... Remove them. tj: Updated patch desc. Signed-off-by: Vineet Gupta Signed-off-by: Tejun Heo --- arch/arc/kernel/troubleshoot.c | 2 +- kernel/signal.c| 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) d

[PATCH 4/7] dmi: morph dmi_dump_ids() into dmi_format_ids() which formats into a buffer

2013-04-03 Thread Tejun Heo
dated to format the information into dmi_ids_string[] using the new function and print it with "DMI:" prefix. dmi_ids_string[] will be used for another purpose by a future patch. Signed-off-by: Tejun Heo Cc: Bjorn Helgaas --- drivers/firmware/dmi_scan.c | 44 +++

[PATCHSET v2] workqueue, writeback: better worker information in task dumps

2013-04-03 Thread Tejun Heo
Hello, Andrew, this one depends on the debug info unification patch and should be routed through -mm too. The writeback folks seem to be okay with the proposed changes although nobody explicitly acked it yet (please do so). Please route these together with the previous set through -mm. Thanks.

[PATCH 2/3] workqueue: include workqueue info when printing debug dump of a worker task

2013-04-03 Thread Tejun Heo
_stack+0x19/0x1b [] warn_slowpath_common+0x7f/0xc0 [] warn_slowpath_null+0x1a/0x20 [] bdi_writeback_workfn+0x2a0/0x3b0 ... Signed-off-by: Tejun Heo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Andrew Morton Cc: Jan Kara Cc: Jens Axboe Cc: Dave Chinner --- include/linux/workqueue.h | 5 +++

[PATCH 3/3] writeback: set worker desc to identify writeback workers in task dumps

2013-04-03 Thread Tejun Heo
7d08 Call Trace: [] dump_stack+0x19/0x1b [] warn_slowpath_common+0x70/0xa0 [] warn_slowpath_null+0x1a/0x20 [] bdi_writeback_workfn+0x2b4/0x3c0 [] process_one_work+0x1d7/0x660 [] worker_thread+0x122/0x380 [] kthread+0xea/0xf0 [] ret_from_fork+0x7c/0xb0 Signed-off-by: Tejun Heo Cc: Da

[PATCH 1/3] kthread: implement probe_kthread_data()

2013-04-03 Thread Tejun Heo
-by: Tejun Heo Cc: Oleg Nesterov Cc: Andrew Morton Cc: Jan Kara --- include/linux/kthread.h | 1 + kernel/kthread.c| 19 +++ 2 files changed, 20 insertions(+) diff --git a/include/linux/kthread.h b/include/linux/kthread.h index 8d81664..7dcef33 100644 --- a/include/linux

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-04-03 Thread Tejun Heo
On Tue, Apr 02, 2013 at 10:26:48AM +0200, Michal Hocko wrote: > Tejun, > could you take this one please? Aye aye, applied to cgroup/for-3.10. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More ma

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Tejun Heo
On Wed, Apr 03, 2013 at 05:11:15PM +0800, Li Zefan wrote: > (I'll be off from my office soon, and I won't be responsive in the following > 3 days.) > > I'm working on converting memcg to use cgroup->id, and then we can kill > css_id. > > Now memcg has its own refcnt, so when a cgroup is destroye

Re: [PATCH V4 3/4] block: queue work on unbound wq

2013-04-03 Thread Tejun Heo
Hello, Viresh. Sorry about the delay. Lost this one somehow. On Mon, Apr 01, 2013 at 12:01:05PM +0530, Viresh Kumar wrote: > Just wanted to make this clear before writing it: > > You want me to do something like (With better names): > > int wq_unbound_for_power_save_enabled = 0; > > #ifdef CO

Re: [RFC][PATCH 5/7] cgroup: make sure parent won't be destroyed before its children

2013-04-04 Thread Tejun Heo
Hey, On Thu, Apr 04, 2013 at 01:37:50PM +0200, Michal Hocko wrote: > On Wed 03-04-13 17:13:08, Li Zefan wrote: > > Suppose we rmdir a cgroup and there're still css refs, this cgroup won't > > be freed. Then we rmdir the parent cgroup, and the parent is freed due > > to css ref draining to 0. Now i

Re: [PATCH] blk: start bypass mode in blk_unregister_queue

2013-04-04 Thread Tejun Heo
On Thu, Apr 04, 2013 at 10:01:14PM +0800, Aaron Lu wrote: > In blk_register_queue, we will end bypass mode for the queue; but in > blk_unregister_queue, we didn't start bypass mode for it. This would > cause the WARN_ON_ONCE(q->bypass_depth < 0) to trigger if the queue gets > registered, unregister

Re: [PATCH 1/7] workqueue: add __WQ_FREEZING and remove POOL_FREEZING

2013-04-04 Thread Tejun Heo
Hello, Lai. On Thu, Apr 04, 2013 at 10:05:32AM +0800, Lai Jiangshan wrote: > @@ -4757,25 +4747,16 @@ void thaw_workqueues(void) > { > struct workqueue_struct *wq; > struct pool_workqueue *pwq; > - struct worker_pool *pool; > - int pi; > > mutex_lock(&wq_pool_mutex); >

Re: [PATCH 3/7] workqueue: rename rebind_workers() to associate_cpu_pool()

2013-04-04 Thread Tejun Heo
On Thu, Apr 04, 2013 at 10:05:34AM +0800, Lai Jiangshan wrote: > merge the code of clearing POOL_DISASSOCIATED to rebind_workers(), and > rename rebind_workers() to associate_cpu_pool(). > > It merges high related code together and simplify > workqueue_cpu_up_callback(). > > Signed-off-by: Lai Ji

Re: [PATCH] blk: start bypass mode in blk_unregister_queue

2013-04-04 Thread Tejun Heo
Hello, On Thu, Apr 04, 2013 at 10:16:39PM +0800, Aaron Lu wrote: > It probably wouldn't happen for normal user, only for some SCSI driver > developers like me, e.g. the sr_mod will normally load during boot, and > when I made some changes to the code, I'll unload the driver and reload > it. This i

Re: [PATCH 5/7] workqueue, use default pwq when fail to allocate node pwd

2013-04-04 Thread Tejun Heo
On Thu, Apr 04, 2013 at 10:05:36AM +0800, Lai Jiangshan wrote: > When we fail to allocate the node pwq, we can use the default pwq > for the node. > > Thus we can avoid failure after allocated default pwq, and remove > some code for failure path. I don't know about this one. The reason why we fa

Re: [PATCH 6/7] workqueue: node-awared allocation for unbound pool

2013-04-04 Thread Tejun Heo
Hello, On Thu, Apr 04, 2013 at 10:05:37AM +0800, Lai Jiangshan wrote: > calculate the node of the pool earlier, and allocate the pool > from the node. > > Signed-off-by: Lai Jiangshan > --- > kernel/workqueue.c | 29 +++-- > 1 files changed, 15 insertions(+), 14 deleti

[PATCH] workqueue: avoid false negative WARN_ON() in destroy_workqueue()

2013-04-04 Thread Tejun Heo
rote description. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo Reported-by: Fengguang Wu --- Applied to wq/for-3.10. Thanks. kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index dd2a4c4..c273376 100

Re: [RFC][PATCH 5/7] cgroup: make sure parent won't be destroyed before its children

2013-04-04 Thread Tejun Heo
On Thu, Apr 04, 2013 at 05:20:28PM +0200, Michal Hocko wrote: > > But what harm does an additional reference do? > > No harm at all. I just wanted to be sure that this is not yet another > "for memcg" hack. So if this is useful for other controllers then I have > no objections of course. I think

Re: kernel/workqueue.c:4434:61: sparse: expression using sizeof bool

2013-04-04 Thread Tejun Heo
Hey, On Thu, Apr 04, 2013 at 09:42:09AM +0800, Fengguang Wu wrote: > > > 4433/* copy worker description */ > > > > 4434probe_kernel_read(&desc_valid, &worker->desc_valid, > > > > sizeof(desc_valid)); > > > 4435if (desc_valid) > > > > I don't know what to m

flushing uninitialized work item in radeon init failure path

2013-04-04 Thread Tejun Heo
Hello, The following happens on my test machine which has an on-board VGA which is not connected. The failure is expected but, in the failure path, it calls radeon_irq_kms_fini() which flushes @rdev->*_work when @rdev seemingly hasn't gone through radeon_irq_kms_init(), ending up trying to flush

Re: next-20130325 - INFO: trying to register non-static key.

2013-04-04 Thread Tejun Heo
Hello, Valdis. On Tue, Mar 26, 2013 at 02:06:03PM -0400, Valdis Kletnieks wrote: > Seen in the dmesg for next-20130325, but looks like it's been doing > it since at least next-20130218. > > [ 50.162584] dell_wmi: Received unknown WMI event (0x11) > [ 51.167629] INFO: trying to register non-st

Re: [PATCH v2 03/20] x86, ACPI, mm: Kill max_low_pfn_mapped

2013-04-04 Thread Tejun Heo
Hello, On Sat, Mar 09, 2013 at 10:44:30PM -0800, Yinghai Lu wrote: > Now we have arch_pfn_mapped array, and max_low_pfn_mapped should not > be used anymore. > > User should use arch_pfn_mapped or just 1UL<<(32-PAGE_SHIFT) instead. > > Only user is ACPI_INITRD_TABLE_OVERRIDE, and it should not us

Re: [PATCH v2 02/20] x86, microcode: Use common get_ramdisk_image()

2013-04-04 Thread Tejun Heo
ually happen? > Signed-off-by: Yinghai Lu > Cc: Fenghua Yu For 01 and 02 Acked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ke

Re: [PATCH v2 04/20] x86, ACPI: Increase override tables number limit

2013-04-04 Thread Tejun Heo
eparated patch, also > rename array name to acpi_initrd_files. > > Signed-off-by: Yinghai > Cc: Rafael J. Wysocki > Cc: linux-a...@vger.kernel.org Acked-by: Tejun Heo > @@ -648,14 +647,14 @@ void __init acpi_initrd_override(void *data, size_t > size) >

Re: [PATCH v2 05/20] x86, ACPI: Split acpi_initrd_override to find/copy two functions

2013-04-04 Thread Tejun Heo
ONFIG_ACPI. Move the prototypes and dummy implementations of the newly split functions below CONFIG_ACPI block in acpi.h so that we can do away with #ifdefs in its user. Acked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-04-04 Thread Tejun Heo
On Sat, Mar 09, 2013 at 10:44:33PM -0800, Yinghai Lu wrote: > In 32bit we will find table with phys address during 32bit flat mode > in head_32.S, because at that time we don't need set page table to > access initrd. > > For copying we could use early_ioremap() with phys directly before mem mappin

Re: [PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-04-04 Thread Tejun Heo
On Thu, Apr 04, 2013 at 11:27:42AM -0700, Tejun Heo wrote: > > + /* > > +* have to use unsigned long, otherwise 32bit spit warning > > +* and it is ok to unsigned long, as bootloader would not > > +* load initrd a

Re: [PATCH v2 07/20] x86, ACPI: Make acpi_initrd_override_find work with 32bit flat mode

2013-04-04 Thread Tejun Heo
Hello, On Sat, Mar 09, 2013 at 10:44:34PM -0800, Yinghai Lu wrote: > For finding with 32bit, it would be easy to access initrd in 32bit > flat mode, as we don't need to set page table. > > That is from head_32.S, and microcode updating already use this trick. > > Need to change acpi_initrd_overr

[PATCH 3/5] cgroup: unexport locking interface and cgroup_attach_task()

2013-04-04 Thread Tejun Heo
ut locking interface anyway. Make it static too. Signed-off-by: Tejun Heo --- include/linux/cgroup.h | 5 - kernel/cgroup.c| 9 +++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index f8eb01d..63deb70 100644 --- a/inc

[PATCH 5/5] cgroup: remove cgroup_lock_is_held()

2013-04-04 Thread Tejun Heo
ned-off-by: Tejun Heo --- include/linux/cgroup.h | 13 + kernel/cgroup.c| 20 ++-- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 63deb70..515927e 100644 --- a/include/linux/cgroup.h +++ b/inc

[PATCH 4/5] cgroup: kill cgroup_[un]lock()

2013-04-04 Thread Tejun Heo
Now that locking interface is unexported, there's no reason to keep around these thin wrappers. Kill them and use mutex operations directly. Signed-off-by: Tejun Heo --- kernel/cgroup.c | 41 +++-- 1 file changed, 11 insertions(+), 30 deletions(-)

[PATCH 1/5] cgroup, cpuset: replace move_member_tasks_to_cpuset() with cgroup_transfer_tasks()

2013-04-04 Thread Tejun Heo
move_member_tasks_to_cpuset() with it. Signed-off-by: Tejun Heo Cc: Li Zefan --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 28 +++ kernel/cpuset.c| 51 ++ 3 files changed, 35 insertions(+), 45 deletions(-) diff --git

[PATCH 2/5] cgroup: relocate cgroup_lock_live_group() and cgroup_attach_task_all()

2013-04-04 Thread Tejun Heo
cgroup_lock_live_group() and cgroup_attach_task() are scheduled to be made static. Relocate the former and cgroup_attach_task_all() so that we don't need forward declarations. This patch is pure relocation. Signed-off-by: Tejun Heo --- kernel/cgroup.c

[PATCHSET] cgroup: unexport locking interface

2013-04-04 Thread Tejun Heo
Hello, Most cgroup_mutex abuses outside cgroup core proper have been eradicated but there's still one use remaining and locking interface is still exported. This patchset updates the last user and unexports the locking interface and is composed of the following five patches. 0001-cgroup-cpuset-

Re: [PATCH V4 3/4] block: queue work on unbound wq

2013-04-05 Thread Tejun Heo
On Fri, Apr 5, 2013 at 2:47 AM, Viresh Kumar wrote: > module_param()?? We can't compile kernel/workqueue.c as a module and > hence i went with #define + a variable with functions to set/reset it... module_param works fine for kernel proper. -- tejun -- To unsubscribe from this list: send the lin

cgroup: status-quo and userland efforts

2013-04-05 Thread Tejun Heo
Hello, guys. Status-quo == It's been about a year since I wrote up a summary on cgroup status quo and future plans. We're not there yet but much closer than we were before. At least the locking and object life-time management aren't crazy anymore and most controllers now support prope

Re: linux-next: Tree for Jan 25 (BROKEN suspend)

2013-01-28 Thread Tejun Heo
Hello, Sedat. On Mon, Jan 28, 2013 at 11:06:11PM +0100, Sedat Dilek wrote: > 1. People should sent their patches concerning especially Linux-Next > fixes not only to LKML but also to (if > this is not known, pointing to James). > > 2. These patches for Linux-Next should contain a "-next" in thei

Re: [PATCH] generic dynamic per cpu refcounting

2013-01-29 Thread Tejun Heo
Hey, Kent. On Tue, Jan 29, 2013 at 08:39:42AM -0800, Kent Overstreet wrote: > Oh, if this is going to be widely used I should probably have a > different implementation for archs that don't have atomic64_t in > hardware. Don't suppose you know the CONFIG_ macro to test against? I > couldn't find i

Re: [PATCH v3 1/9] device_cgroup: prepare exception list handling functions for two lists

2013-01-29 Thread Tejun Heo
. > > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Aristeu Rozanski Acked-by: Tejun Heo Can you please keep acks across postings? That makes it a bit easier for reviewers. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH v3 2/9] devcg: reorder device exception functions

2013-01-29 Thread Tejun Heo
On Tue, Jan 29, 2013 at 02:08:01PM -0500, a...@redhat.com wrote: > In preparation for the next patch, reorder dev_exception_add() and > dev_exception_rm(). It would be nice to have something like "this change doesn't introduce any functional changes". > Cc: Tejun

Re: [PATCH v3 3/9] device_cgroup: keep track of local group settings

2013-01-29 Thread Tejun Heo
in two, one to just move dev_exception_rm() before > dev_exception_add() while keeping functional changes in this patch as > requested by Tejun. > > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Aristeu Rozanski Acked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe

Re: [PATCH v3 4/9] devcg: expand may_access() logic

2013-01-29 Thread Tejun Heo
On Tue, Jan 29, 2013 at 02:08:03PM -0500, a...@redhat.com wrote: > In order to make the next patch more clear, expand may_access() logic. > > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Aristeu Rozanski Maybe convert the function to return bool while at it? Acke

Re: [PATCH v3 5/9] devcg: prepare may_access() for hierarchy support

2013-01-29 Thread Tejun Heo
owards its cgroup parent, > which > might have different behavior. > > v2: > - updated patch description > - rebased on top of a new patch to expand the may_access() logic to make it > more clear > - fixed argument description order in may_access() > > Cc: Tejun He

Re: [PATCH v3 6/9] devcg: use css_online and css_offline

2013-01-29 Thread Tejun Heo
ode is on the hierarchy or not for config propagation and inheritance. It would be nice if you explain the synchornization implications. > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Aristeu Rozanski Other than that, Acked-by: Tejun Heo -- tejun -- To unsubscribe from this

Re: [PATCH v3 7/9] devcg: split single exception copy from dev_exceptions_copy()

2013-01-29 Thread Tejun Heo
On Tue, Jan 29, 2013 at 02:08:06PM -0500, a...@redhat.com wrote: > This patch is in preparation for hierarchy support It would be nice to note this is purely organizational and doesn't make any functional changes. > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Aristeu Ro

Re: [PATCH v3 8/9] devcg: refactor dev_exception_clean()

2013-01-29 Thread Tejun Heo
On Tue, Jan 29, 2013 at 02:08:07PM -0500, a...@redhat.com wrote: > This patch is in preparation for hierarchy support. Ditto. > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Aristeu Rozanski Acked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe from this list: s

Re: [PATCH] generic dynamic per cpu refcounting

2013-01-29 Thread Tejun Heo
Hello, Kent. On Tue, Jan 29, 2013 at 11:51:41AM -0800, Kent Overstreet wrote: > > What about overflow? Note that we can have systemetic cases where ref > > is gotten on one cpu and put on another transferring counts in a > > specific direction. > > Heh, this keeps coming up. > > It works becaus

Re: [PATCH v3 9/9] devcg: propagate local changes down the hierarchy

2013-01-29 Thread Tejun Heo
; > + if (is_devcg_online(devcg)) > + list_add_tail(&devcg->propagate_pending, &pending); > + } > + rcu_read_unlock(); I think it could be a good idea to factor out the above and document what's going on and why. Other than that, Acked-by: Tejun Heo Thanks. -- t

Re: [PATCH] generic dynamic per cpu refcounting

2013-01-29 Thread Tejun Heo
Hey, Kent. On Tue, Jan 29, 2013 at 01:45:37PM -0800, Kent Overstreet wrote: > It would definitely be cleaner if the global counter was also 32 bits (I > probably should've done it that way at first) but it works with it being > bigger _provided the sum of the percpu counters is sign extended_ when

Re: [PATCH v4 8/9] devcg: refactor dev_exception_clean()

2013-01-30 Thread Tejun Heo
Hello, On Wed, Jan 30, 2013 at 12:49 PM, Aristeu Rozanski > that's not intentional. thanks for catching this > > Tejun, you want me to resubmit the whole series or just the next patch > (where I was supposed to move that chunk)? If it doesn't affect the next patch, just posting an updated version

Re: kernel/cgroup_freezer.c:151:3: error: 'system_freezing_cnt' undeclared

2013-01-31 Thread Tejun Heo
Hello, guys. On Fri, Feb 01, 2013 at 01:17:58AM +0800, kbuild test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux master > head: 04c2eee5b9dfcb13f3cd07a5537fb8c785f2751a > commit: a3201227f803ad7fd43180c5195dbe5a2bf998aa freezer: make freezing() > test freez

Re: [PATCH 10/14] dlm: don't use idr_remove_all()

2013-01-31 Thread Tejun Heo
Hello, David. Sorry about the delay. On Wed, Jan 30, 2013 at 04:24:18PM -0500, David Teigland wrote: > > Unfortunately, the list_for_each_entry doesn't seem to be clearing > > everything. I've seen "warning: recover_list_count 39" at the end of that > > function. > > I don't want to pretend to

Re: [PATCH 11/14] nfs: idr_destroy() no longer needs idr_remove_all()

2013-01-31 Thread Tejun Heo
Hello, Trond. On Wed, Jan 30, 2013 at 02:18:06AM +, Myklebust, Trond wrote: > My worry is more about Tejun's comment that we did actually need a call > to idr_remove_all() in the original code. Do we need to queue up a fix > for the 3.8 and existing stable kernels? IIUC, the only case where i

Re: [PATCH 10/14] dlm: don't use idr_remove_all()

2013-01-31 Thread Tejun Heo
Hello, David. On Thu, Jan 31, 2013 at 03:53:20PM -0800, Tejun Heo wrote: > The function description is misleading. The function does search > inclusive range and needs explicit cursor increment to make progress. > Weird that it doesn't work. Looking into it. I'll write when

Re: kernel/cgroup_freezer.c:151:3: error: 'system_freezing_cnt' undeclared

2013-01-31 Thread Tejun Heo
Hello, Chris. On Thu, Jan 31, 2013 at 07:46:09PM -0500, Chris Metcalf wrote: > That seems reasonable to me, but I'm happy to experiment with > including Kconfig.freezer from the arch/tile/Kconfig if that feels > like a better solution. AFAICS, there's nothing arch specific about freezer and cgrou

Re: kernel/cgroup_freezer.c:151:3: error: 'system_freezing_cnt' undeclared

2013-01-31 Thread Tejun Heo
On Thu, Jan 31, 2013 at 09:23:08PM -0500, Chris Metcalf wrote: > On 1/31/2013 7:52 PM, Tejun Heo wrote: > > Hello, Chris. > > > > On Thu, Jan 31, 2013 at 07:46:09PM -0500, Chris Metcalf wrote: > >> That seems reasonable to me, but I'm happy to experiment with

Re: [PATCH 10/14] dlm: don't use idr_remove_all()

2013-02-01 Thread Tejun Heo
Hello, David. On Fri, Feb 01, 2013 at 12:44:43PM -0500, David Teigland wrote: > I already tried my own version of this, but used idr_for_each_entry a > second time. Unfortunately, the number it found and printed did not match > recover_list_count. > > warning: recover_list_count 566 > > It prin

Re: [PATCH 1/2] cgroup: fix exit() vsrmdir() race

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:43:28PM +0800, Li Zefan wrote: > In cgroup_exit() put_css_set_taskexit() is called without any lock, > which might lead to accessing a freed cgroup: > > thread1 thread2 > - > exit() > cgroup_exit() >

Re: [PATCH 2/2] cgroup: remove a NULL check in cgroup_exit()

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:43:51PM +0800, Li Zefan wrote: > init_task.cgroups is initialized at boot phase, and whenver a ask > is forked, it's cgroups pointer is inherited from its parent, and > it's never set to NULL afterwards. > > Signed-off-by: Li Zefan Applied to cgroup/for-3.9. Thanks.

Re: [PATCH 1/2] cgroup: fix exit() vsrmdir() race

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 10:19:23AM -0800, Tejun Heo wrote: > * cgroup_release_agent() seems broken too. It's accessing cgrp after > removing it from release_list. Can you please fix it too? Oh, we should be okay as we're holding cgroup_mutex there. Please forget about th

Re: [PATCH] workqueue: un-GPL function delayed_work_timer_fn()

2013-01-24 Thread Tejun Heo
rks > unusable for non-GPL modules, because initialization macro now requires > GPL symbol. For example schedule_delayed_work() available for non-GPL. > > Signed-off-by: Konstantin Khlebnikov > Cc: Tejun Heo > Cc: sta...@vger.kernel.org # 3.7 Applied to wq/for-3.8-fixes. Thanks

Re: [PATCH v2 15/17] workqueue: remove global_cwq

2013-01-24 Thread Tejun Heo
Hey, Joonsoo. On Thu, Jan 24, 2013 at 06:29:36PM +0900, Joonsoo Kim wrote: > > -static DEFINE_PER_CPU(struct global_cwq, global_cwq); > > +static DEFINE_PER_CPU(struct worker_pool [NR_STD_WORKER_POOLS], > > + cpu_std_worker_pools); > > static DEFINE_PER_CPU_SHARED_ALIGNED(atomic_t

Re: [PATCHSET] workqueue: remove gcwq and make worker_pool the only backend abstraction

2013-01-24 Thread Tejun Heo
Hey, Lai. On Thu, Jan 24, 2013 at 09:36:39PM +0800, Lai Jiangshan wrote: > For the whole patchset > Reviewed-by: Lai Jiangshan Thanks for reviewing it. > The only concern: get_work_pool() may slow down __queue_work(). Yeap, I'm currently working on to optimize idr so that the fast path basical

Re: [PATCHSET] workqueue: remove gcwq and make worker_pool the only backend abstraction

2013-01-24 Thread Tejun Heo
On Wed, Jan 16, 2013 at 05:42:32PM -0800, Tejun Heo wrote: > Currently, on the backend side, there are two layers of abstraction. > For each CPU and the special unbound wq-specific CPU, there's one > global_cwq. gcwq in turn hosts two worker_pools - one for normal > priori

[PATCH wq/for-3.9] workqueue: move nr_running into worker_pool

2013-01-24 Thread Tejun Heo
pool->nr_running accesses. Signed-off-by: Tejun Heo Cc: Joonsoo Kim --- kernel/workqueue.c | 63 ++--- 1 file changed, 22 insertions(+), 41 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 577de10..a49cc88 100644 ---

Re: [PATCH v2 2/6] sched: split out css_online/css_offline from tg creation/destruction

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 11:01:34AM +0100, Ingo Molnar wrote: > Acked-by: Ingo Molnar Ingo, if you don't objecdt, I'll take these through cgroup/for-3.9 branch with other cgroup changes. Pleaes holler if you object. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v2 1/6] cgroup: initialize cgrp->dentry before css_alloc()

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:30:22PM +0800, Li Zefan wrote: > With this change, we're guaranteed that cgroup_path() won't see NULL > cgrp->dentry, and thus we can remove the NULL check in it. > > (Well, it's not true, because dummptop.dentry is always NULL) > > Signed-off-by: Li Zefan Appled 1-6

<    1   2   3   4   5   6   7   8   9   10   >