[PATCH v4] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-08 Thread Alexandru Moise
47.648492] *** DEADLOCK *** Using NVMEoF after this patch seems to finally be stable, without it, rxe eventually deadlocks the whole system and causes RCU stalls. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v3->v4: only force rxe_post_send_kernel() to alw

[PATCH v4] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-08 Thread Alexandru Moise
47.648492] *** DEADLOCK *** Using NVMEoF after this patch seems to finally be stable, without it, rxe eventually deadlocks the whole system and causes RCU stalls. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v3->v4: only force rxe_post_send_kernel() to alw

Re: [PATCH v3] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-08 Thread Alexandru Moise
On Tue, May 08, 2018 at 11:09:18AM +0800, Yanjun Zhu wrote: > > > On 2018/5/8 4:58, Alexandru Moise wrote: > > This addresses 3 separate problems: > > > > 1. When using NVME over Fabrics we may end up sending IP > > packets in interrupt context, we should

Re: [PATCH v3] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-08 Thread Alexandru Moise
On Tue, May 08, 2018 at 11:09:18AM +0800, Yanjun Zhu wrote: > > > On 2018/5/8 4:58, Alexandru Moise wrote: > > This addresses 3 separate problems: > > > > 1. When using NVME over Fabrics we may end up sending IP > > packets in interrupt context, we should

[PATCH v3] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-07 Thread Alexandru Moise
EADLOCK *** Using NVMEoF after this patch seems to finally be stable, without it, rxe eventually deadlocks the whole system and causes RCU stalls. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2->v3: Abandoned the idea of just offloading work to tasklet in irq context. NVM

[PATCH v3] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-07 Thread Alexandru Moise
EADLOCK *** Using NVMEoF after this patch seems to finally be stable, without it, rxe eventually deadlocks the whole system and causes RCU stalls. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2->v3: Abandoned the idea of just offloading work to tasklet in irq context. NVM

[PATCH v2] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-07 Thread Alexandru Moise
/0xd0 [ 51.006182] common_interrupt+0xf/0xf [ 51.007129] Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v1->v2: added Zhu Yanjun's suggestion on in_irq() check drivers/infiniband/sw/rxe/rxe_verbs.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions

[PATCH v2] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-07 Thread Alexandru Moise
/0xd0 [ 51.006182] common_interrupt+0xf/0xf [ 51.007129] Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v1->v2: added Zhu Yanjun's suggestion on in_irq() check drivers/infiniband/sw/rxe/rxe_verbs.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions

[PATCH] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-06 Thread Alexandru Moise
/0xd0 [ 51.006182] common_interrupt+0xf/0xf [ 51.007129] Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- drivers/infiniband/sw/rxe/rxe_verbs.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/d

[PATCH] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-06 Thread Alexandru Moise
/0xd0 [ 51.006182] common_interrupt+0xf/0xf [ 51.007129] Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- drivers/infiniband/sw/rxe/rxe_verbs.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/d

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 09:28:30PM +, Bart Van Assche wrote: > On Wed, 2018-04-11 at 23:23 +0200, Alexandru Moise wrote: > > Hi, I tested it, it doesn't solve the problem. > > By the time you get here it's already too late, my patch > > prevents this from failing in the fi

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 09:28:30PM +, Bart Van Assche wrote: > On Wed, 2018-04-11 at 23:23 +0200, Alexandru Moise wrote: > > Hi, I tested it, it doesn't solve the problem. > > By the time you get here it's already too late, my patch > > prevents this from failing in the fi

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 01:55:25PM -0600, Bart Van Assche wrote: > On 04/11/18 13:00, Alexandru Moise wrote: > > But the root cause of it is in blkcg_init_queue() when blkg_create() returns > > an ERR ptr, because it tries to insert into a populated index into > > blkcg->

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 01:55:25PM -0600, Bart Van Assche wrote: > On 04/11/18 13:00, Alexandru Moise wrote: > > But the root cause of it is in blkcg_init_queue() when blkg_create() returns > > an ERR ptr, because it tries to insert into a populated index into > > blkcg->

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 03:54:53PM +, Bart Van Assche wrote: > On Wed, 2018-04-11 at 16:28 +0200, Alexandru Moise wrote: > > [0.76] BUG: unable to handle kernel NULL pointer dereference at > > 01b4 > > [0.763350] Kernel panic - not syncing: A

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 03:54:53PM +, Bart Van Assche wrote: > On Wed, 2018-04-11 at 16:28 +0200, Alexandru Moise wrote: > > [0.76] BUG: unable to handle kernel NULL pointer dereference at > > 01b4 > > [0.763350] Kernel panic - not syncing: A

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 07:20:19AM -0700, Tejun Heo wrote: > Hello, > > On Wed, Apr 11, 2018 at 12:12:56PM +0200, Alexandru Moise wrote: > > > But we already do this through calling blkcg_exit_queue() from > > > __blk_release_queue(). What's missing? > > > &

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Wed, Apr 11, 2018 at 07:20:19AM -0700, Tejun Heo wrote: > Hello, > > On Wed, Apr 11, 2018 at 12:12:56PM +0200, Alexandru Moise wrote: > > > But we already do this through calling blkcg_exit_queue() from > > > __blk_release_queue(). What's missing? > > > &

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Mon, Apr 09, 2018 at 03:09:38PM -0700, Tejun Heo wrote: > (cc'ing Joseph as he worked on the area recently, hi!) > > Hello, > > On Sat, Apr 07, 2018 at 12:21:48PM +0200, Alexandru Moise wrote: > > The q->id is used as an index within the blkg_tree radix tre

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Mon, Apr 09, 2018 at 03:09:38PM -0700, Tejun Heo wrote: > (cc'ing Joseph as he worked on the area recently, hi!) > > Hello, > > On Sat, Apr 07, 2018 at 12:21:48PM +0200, Alexandru Moise wrote: > > The q->id is used as an index within the blkg_tree radix tre

[PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-07 Thread Alexandru Moise
ing. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2: Added no-op for !CONFIG_BLK_CGROUP block/blk-cgroup.c | 2 +- block/blk-sysfs.c | 4 include/linux/blk-cgroup.h | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/block/blk-c

[PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-07 Thread Alexandru Moise
ing. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2: Added no-op for !CONFIG_BLK_CGROUP block/blk-cgroup.c | 2 +- block/blk-sysfs.c | 4 include/linux/blk-cgroup.h | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/block/blk-c

[PATCH] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-06 Thread Alexandru Moise
ing. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- block/blk-cgroup.c | 2 +- block/blk-sysfs.c | 4 include/linux/blk-cgroup.h | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 1c1

[PATCH] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-06 Thread Alexandru Moise
ing. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- block/blk-cgroup.c | 2 +- block/blk-sysfs.c | 4 include/linux/blk-cgroup.h | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 1c1

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 06:15:00PM +0200, Michal Hocko wrote: > On Mon 02-10-17 17:06:38, Alexandru Moise wrote: > > On Mon, Oct 02, 2017 at 04:27:17PM +0200, Michal Hocko wrote: > > > On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > > > > On Mon, Oct 02, 2017 at

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 06:15:00PM +0200, Michal Hocko wrote: > On Mon 02-10-17 17:06:38, Alexandru Moise wrote: > > On Mon, Oct 02, 2017 at 04:27:17PM +0200, Michal Hocko wrote: > > > On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > > > > On Mon, Oct 02, 2017 at

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 04:27:17PM +0200, Michal Hocko wrote: > On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > > On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > > > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > > > This attempts to bring mor

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 04:27:17PM +0200, Michal Hocko wrote: > On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > > On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > > > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > > > This attempts to bring mor

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > This attempts to bring more flexibility to how hugepages are allocated > > by making it possible to decide whether we want the hugepages to be > > alloca

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > This attempts to bring more flexibility to how hugepages are allocated > > by making it possible to decide whether we want the hugepages to be > > alloca

[PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-01 Thread Alexandru Moise
mplementation is a bit dirty so obviously I'm open to suggestions for a better way to implement this behavior, or comments whether the whole idea is fundamentally __wrong__. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- Documentation/admin-guide/kernel-parameters.txt | 8 ++

[PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-01 Thread Alexandru Moise
mplementation is a bit dirty so obviously I'm open to suggestions for a better way to implement this behavior, or comments whether the whole idea is fundamentally __wrong__. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- Documentation/admin-guide/kernel-parameters.txt | 8 ++

Re: [PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-30 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 02:16:10PM -0700, Mike Kravetz wrote: > Adding Anshuman > > On 09/29/2017 01:43 PM, Alexandru Moise wrote: > > On Fri, Sep 29, 2017 at 05:13:39PM +0200, Alexandru Moise wrote: > >> > >> diff --git a/mm/hugetlb.c b/mm/hugetlb.c > >&g

Re: [PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-30 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 02:16:10PM -0700, Mike Kravetz wrote: > Adding Anshuman > > On 09/29/2017 01:43 PM, Alexandru Moise wrote: > > On Fri, Sep 29, 2017 at 05:13:39PM +0200, Alexandru Moise wrote: > >> > >> diff --git a/mm/hugetlb.c b/mm/hugetlb.c > >&g

Re: [PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-29 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 05:13:39PM +0200, Alexandru Moise wrote: > If hugepage_migration_supported() returns true, this renders the > hugepages_treat_as_movable sysctl completely pointless. > > Let's keep this behavior optional by switching the if() condition > from || to &

Re: [PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-29 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 05:13:39PM +0200, Alexandru Moise wrote: > If hugepage_migration_supported() returns true, this renders the > hugepages_treat_as_movable sysctl completely pointless. > > Let's keep this behavior optional by switching the if() condition > from || to &

[PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-29 Thread Alexandru Moise
If hugepage_migration_supported() returns true, this renders the hugepages_treat_as_movable sysctl completely pointless. Let's keep this behavior optional by switching the if() condition from || to &&. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- mm/huget

[PATCH] mm, hugetlb: fix "treat_as_movable" condition in htlb_alloc_mask

2017-09-29 Thread Alexandru Moise
If hugepage_migration_supported() returns true, this renders the hugepages_treat_as_movable sysctl completely pointless. Let's keep this behavior optional by switching the if() condition from || to &&. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- mm/huget

Re: [PATCH] mm/madvise: enable soft offline of HugeTLB pages at PUD level

2017-09-29 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 04:55:54PM +0300, Kirill A. Shutemov wrote: > On Wed, Sep 13, 2017 at 12:10:47PM +0200, Alexandru Moise wrote: > > since 94310cb we've been able to soft offline 1G hugepages at the PGD > > level, however x86_64 gigantic hugepages are at the PUD level so we

Re: [PATCH] mm/madvise: enable soft offline of HugeTLB pages at PUD level

2017-09-29 Thread Alexandru Moise
On Fri, Sep 29, 2017 at 04:55:54PM +0300, Kirill A. Shutemov wrote: > On Wed, Sep 13, 2017 at 12:10:47PM +0200, Alexandru Moise wrote: > > since 94310cb we've been able to soft offline 1G hugepages at the PGD > > level, however x86_64 gigantic hugepages are at the PUD level so we

[PATCH] genirq: check __free_irq()'s return value for NULL

2017-09-19 Thread Alexandru Moise
__free_irq() can return a NULL irqaction for example when trying to free already-free IRQ. Fix this by adding a check and return NULL. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- kernel/irq/manage.c | 4 1 file changed, 4 insertions(+) diff --git a/kern

[PATCH] genirq: check __free_irq()'s return value for NULL

2017-09-19 Thread Alexandru Moise
__free_irq() can return a NULL irqaction for example when trying to free already-free IRQ. Fix this by adding a check and return NULL. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- kernel/irq/manage.c | 4 1 file changed, 4 insertions(+) diff --git a/kern

[PATCH] mm/madvise: enable soft offline of HugeTLB pages at PUD level

2017-09-13 Thread Alexandru Moise
level pagetable. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- include/linux/hugetlb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 8bbbd37ab105..86c3f3d9da0a 100644 --- a/include/linux/hugetlb.h +++ b/include

[PATCH] mm/madvise: enable soft offline of HugeTLB pages at PUD level

2017-09-13 Thread Alexandru Moise
level pagetable. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- include/linux/hugetlb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 8bbbd37ab105..86c3f3d9da0a 100644 --- a/include/linux/hugetlb.h +++ b/include

Re: [PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-13 Thread Alexandru Moise
On Wed, Sep 13, 2017 at 12:13:09AM +, Naoya Horiguchi wrote: > Hi Alexandru, > > On Tue, Sep 12, 2017 at 10:43:06PM +0200, Alexandru Moise wrote: > > This fixes a bug in madvise() where if you'd try to soft offline a > > hugepage via madvise(), while walking the addre

Re: [PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-13 Thread Alexandru Moise
On Wed, Sep 13, 2017 at 12:13:09AM +, Naoya Horiguchi wrote: > Hi Alexandru, > > On Tue, Sep 12, 2017 at 10:43:06PM +0200, Alexandru Moise wrote: > > This fixes a bug in madvise() where if you'd try to soft offline a > > hugepage via madvise(), while walking the addre

Re: [PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-12 Thread Alexandru Moise
On Tue, Sep 12, 2017 at 01:58:35PM -0700, Andrew Morton wrote: > On Tue, 12 Sep 2017 13:54:48 -0700 Andrew Morton <a...@linux-foundation.org> > wrote: > > > On Tue, 12 Sep 2017 22:43:06 +0200 Alexandru Moise > > <00moses.alexande...@gmail.com> wrote: >

Re: [PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-12 Thread Alexandru Moise
On Tue, Sep 12, 2017 at 01:58:35PM -0700, Andrew Morton wrote: > On Tue, 12 Sep 2017 13:54:48 -0700 Andrew Morton > wrote: > > > On Tue, 12 Sep 2017 22:43:06 +0200 Alexandru Moise > > <00moses.alexande...@gmail.com> wrote: > > > > > This fixes a b

Re: [PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-12 Thread Alexandru Moise
On Tue, Sep 12, 2017 at 01:54:48PM -0700, Andrew Morton wrote: > On Tue, 12 Sep 2017 22:43:06 +0200 Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > > This fixes a bug in madvise() where if you'd try to soft offline a > > hugepage via madvise(), while walk

Re: [PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-12 Thread Alexandru Moise
On Tue, Sep 12, 2017 at 01:54:48PM -0700, Andrew Morton wrote: > On Tue, 12 Sep 2017 22:43:06 +0200 Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > > This fixes a bug in madvise() where if you'd try to soft offline a > > hugepage via madvise(), while walk

[PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-12 Thread Alexandru Moise
c3114a8). Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- mm/madvise.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mm/madvise.c b/mm/madvise.c index 21261ff0466f..25bade36e9ca 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -625,18 +

[PATCH] mm, hugetlb, soft_offline: save compound page order before page migration

2017-09-12 Thread Alexandru Moise
c3114a8). Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- mm/madvise.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mm/madvise.c b/mm/madvise.c index 21261ff0466f..25bade36e9ca 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -625,18 +

Re: [PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-10 Thread Alexandru Moise
On Mon, Jul 10, 2017 at 08:00:37PM +0200, Daniel Vetter wrote: > On Mon, Jul 10, 2017 at 9:14 AM, Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > On Mon, Jul 10, 2017 at 08:52:46AM +0200, Daniel Vetter wrote: > >> On Sat, Jul 08, 2017 at 11:43:52PM +

Re: [PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-10 Thread Alexandru Moise
On Mon, Jul 10, 2017 at 08:00:37PM +0200, Daniel Vetter wrote: > On Mon, Jul 10, 2017 at 9:14 AM, Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > On Mon, Jul 10, 2017 at 08:52:46AM +0200, Daniel Vetter wrote: > >> On Sat, Jul 08, 2017 at 11:43:52PM +

Re: [PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-10 Thread Alexandru Moise
On Mon, Jul 10, 2017 at 08:52:46AM +0200, Daniel Vetter wrote: > On Sat, Jul 08, 2017 at 11:43:52PM +0200, Alexandru Moise wrote: > > If the DRM core fails to init for whatever reason, ensure that > > no driver ever calls drm_dev_register(). > > > > This i

Re: [PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-10 Thread Alexandru Moise
On Mon, Jul 10, 2017 at 08:52:46AM +0200, Daniel Vetter wrote: > On Sat, Jul 08, 2017 at 11:43:52PM +0200, Alexandru Moise wrote: > > If the DRM core fails to init for whatever reason, ensure that > > no driver ever calls drm_dev_register(). > > > > This i

[PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-08 Thread Alexandru Moise
p->lookup() while it was NULL in debugfs at inode_lock() or lookup_*(). Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- drivers/gpu/drm/drm_drv.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c

[PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-08 Thread Alexandru Moise
p->lookup() while it was NULL in debugfs at inode_lock() or lookup_*(). Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- drivers/gpu/drm/drm_drv.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c

Re: Question regarding Linux implementation of rbtrees

2017-04-14 Thread Alexandru Moise
On Fri, Apr 14, 2017 at 10:51:32AM +0200, Peter Zijlstra wrote: > On Fri, Apr 14, 2017 at 12:24:55AM +0200, Alexandru Moise wrote: > > Seeing as RB_RED is defined to be 0 in include/linux/rbtree_augmented.h > > A call of this form: rb_set_parent_color(node, parent, RB_RE

Re: Question regarding Linux implementation of rbtrees

2017-04-14 Thread Alexandru Moise
On Fri, Apr 14, 2017 at 10:51:32AM +0200, Peter Zijlstra wrote: > On Fri, Apr 14, 2017 at 12:24:55AM +0200, Alexandru Moise wrote: > > Seeing as RB_RED is defined to be 0 in include/linux/rbtree_augmented.h > > A call of this form: rb_set_parent_color(node, parent, RB_RE

Question regarding Linux implementation of rbtrees

2017-04-13 Thread Alexandru Moise
Seeing as RB_RED is defined to be 0 in include/linux/rbtree_augmented.h A call of this form: rb_set_parent_color(node, parent, RB_RED); as seen in __rb_insert would only end up reassigning the parent "color" (which is the parent pointer value cast to unsigned long) OR'd with 0. Which would mean

Question regarding Linux implementation of rbtrees

2017-04-13 Thread Alexandru Moise
Seeing as RB_RED is defined to be 0 in include/linux/rbtree_augmented.h A call of this form: rb_set_parent_color(node, parent, RB_RED); as seen in __rb_insert would only end up reassigning the parent "color" (which is the parent pointer value cast to unsigned long) OR'd with 0. Which would mean

[PATCH] cls_u32: don't bother explicitly initializing ->divisor to zero

2017-01-08 Thread Alexandru Moise
This struct member is already initialized to zero upon root_ht's allocation via kzalloc(). Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- net/sched/cls_u32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index ae83c3ae..a6

[PATCH] cls_u32: don't bother explicitly initializing ->divisor to zero

2017-01-08 Thread Alexandru Moise
This struct member is already initialized to zero upon root_ht's allocation via kzalloc(). Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- net/sched/cls_u32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index ae83c3ae..a6

[PATCH] devpts: remove DEVPTS_MULTIPLE_INSTANCES from all configs

2016-06-20 Thread Alexandru Moise
As each mount of devpts is now an independent filesystem, the DEVPTS_MULTIPLE_INSTANCES config option no longer exists. So remove it. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- arch/arc/configs/tb10x_defconfig| 1 - arch/arm/configs/mxs_def

[PATCH] devpts: remove DEVPTS_MULTIPLE_INSTANCES from all configs

2016-06-20 Thread Alexandru Moise
As each mount of devpts is now an independent filesystem, the DEVPTS_MULTIPLE_INSTANCES config option no longer exists. So remove it. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- arch/arc/configs/tb10x_defconfig| 1 - arch/arm/configs/mxs_def

Re: [PATCH v2] cfq-iosched: convert group idle time to jiffies

2015-12-29 Thread Alexandru Moise
On Tue, Dec 29, 2015 at 01:19:57PM -0700, Jens Axboe wrote: > On 12/29/2015 01:16 PM, Alexandru Moise wrote: > >This patch refers to Jens Axboe's change way back in 2006: > >7b14e3b52 cfq-iosched: slice expiry fixups > > > >In this patch he fixed a potential timer

[PATCH v2] cfq-iosched: convert group idle time to jiffies

2015-12-29 Thread Alexandru Moise
. Signed-off-by: Alexandru Moise <00moses.alexade...@gmail.com> --- V2: slice_idle not in miliseconds, convert only group_idle block/cfq-iosched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 1f9093e..088c45d 100644 --- a

Re: [PATCH] cfq-iosched: convert slice idle time to jiffies

2015-12-29 Thread Alexandru Moise
On Tue, Dec 29, 2015 at 10:19:17AM -0700, Jens Axboe wrote: > On 12/28/2015 06:08 PM, Alexandru Moise wrote: > >This patch refers to Jens Axboe's change way back in 2006: > >7b14e3b52 cfq-iosched: slice expiry fixups > > > >In this patch he fixed a potential timer

Re: [PATCH] cfq-iosched: convert slice idle time to jiffies

2015-12-29 Thread Alexandru Moise
On Tue, Dec 29, 2015 at 10:19:17AM -0700, Jens Axboe wrote: > On 12/28/2015 06:08 PM, Alexandru Moise wrote: > >This patch refers to Jens Axboe's change way back in 2006: > >7b14e3b52 cfq-iosched: slice expiry fixups > > > >In this patch he fixed a potential timer

[PATCH v2] cfq-iosched: convert group idle time to jiffies

2015-12-29 Thread Alexandru Moise
. Signed-off-by: Alexandru Moise <00moses.alexade...@gmail.com> --- V2: slice_idle not in miliseconds, convert only group_idle block/cfq-iosched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 1f9093e..088c45d 100644 --- a

Re: [PATCH v2] cfq-iosched: convert group idle time to jiffies

2015-12-29 Thread Alexandru Moise
On Tue, Dec 29, 2015 at 01:19:57PM -0700, Jens Axboe wrote: > On 12/29/2015 01:16 PM, Alexandru Moise wrote: > >This patch refers to Jens Axboe's change way back in 2006: > >7b14e3b52 cfq-iosched: slice expiry fixups > > > >In this patch he fixed a potential timer

[PATCH] cfq-iosched: convert slice idle time to jiffies

2015-12-28 Thread Alexandru Moise
vary too much for me to post any believable numbers (10 milliseconds difference at most on average). Signed-off-by: Alexandru Moise <00moses.alexade...@gmail.com> --- block/cfq-iosched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/cfq-iosched.c b/block/cfq-ios

[PATCH] cfq-iosched: convert slice idle time to jiffies

2015-12-28 Thread Alexandru Moise
vary too much for me to post any believable numbers (10 milliseconds difference at most on average). Signed-off-by: Alexandru Moise <00moses.alexade...@gmail.com> --- block/cfq-iosched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/cfq-iosched.c b/block/cfq-ios

[PATCH] jbd2: redefine jbd2_get_transaction to jbd2_init_transaction

2015-11-12 Thread Alexandru Moise
-by: Alexandru Moise <00moses.alexande...@gmail.com> Reviewed-by: Jan Kara --- fs/jbd2/transaction.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 89463ee..3fd597b 100644 --- a/fs/jbd2/transaction.c +++ b/f

[PATCH] jbd2: redefine jbd2_get_transaction to jbd2_init_transaction

2015-11-12 Thread Alexandru Moise
-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/jbd2/transaction.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 89463ee..3fd597b 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@

[PATCH] jbd2: redefine jbd2_get_transaction to jbd2_init_transaction

2015-11-12 Thread Alexandru Moise
-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/jbd2/transaction.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 89463ee..3fd597b 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@

[PATCH] jbd2: redefine jbd2_get_transaction to jbd2_init_transaction

2015-11-12 Thread Alexandru Moise
-by: Alexandru Moise <00moses.alexande...@gmail.com> Reviewed-by: Jan Kara <j...@suse.com> --- fs/jbd2/transaction.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 89463ee..3fd597b 100644 --- a/fs/jbd2/t

Re: [PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
On Sun, Oct 25, 2015 at 01:33:45PM -0400, Jeff Mahoney wrote: > > On Oct 25, 2015, at 3:50 PM, Alexandru Moise <00moses.alexande...@gmail.com> > wrote: > > >>> This allows us to trim out half of btrfs_init_delayed_node() which > >>> i

[PATCH v2] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
It's slightly cleaner to zero-out the delayed node upon allocation than to do it by hand in btrfs_init_delayed_node() for a few members Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2: Thanks Jeff Mahoney for pointing out the mistake of removing the atomic_set

Re: [PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
> > This allows us to trim out half of btrfs_init_delayed_node() which > > is now reduntant. > > It's redundant if kmem_cache_zalloc is used, but you haven't > documented that doing so is now required. For all of these changes > you've posted, if they're to be accepted, I'd really prefer to set

[PATCH] btrfs: pass proper enum type to start_transaction()

2015-10-25 Thread Alexandru Moise
Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/transaction.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index a5b0644..cb50f53 100644 --- a/fs/btrfs/transaction.c +++ b/fs

[PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
This allows us to trim out half of btrfs_init_delayed_node() which is now reduntant. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/delayed-inode.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/d

Re: [PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
On Sun, Oct 25, 2015 at 01:33:45PM -0400, Jeff Mahoney wrote: > > On Oct 25, 2015, at 3:50 PM, Alexandru Moise <00moses.alexande...@gmail.com> > wrote: > > >>> This allows us to trim out half of btrfs_init_delayed_node() which > >>> i

Re: [PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
> > This allows us to trim out half of btrfs_init_delayed_node() which > > is now reduntant. > > It's redundant if kmem_cache_zalloc is used, but you haven't > documented that doing so is now required. For all of these changes > you've posted, if they're to be accepted, I'd really prefer to set

[PATCH v2] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
It's slightly cleaner to zero-out the delayed node upon allocation than to do it by hand in btrfs_init_delayed_node() for a few members Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2: Thanks Jeff Mahoney for pointing out the mistake of removing the atomic_set

[PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
This allows us to trim out half of btrfs_init_delayed_node() which is now reduntant. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/delayed-inode.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/d

[PATCH] btrfs: pass proper enum type to start_transaction()

2015-10-25 Thread Alexandru Moise
Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/transaction.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index a5b0644..cb50f53 100644 --- a/fs/btrfs/transaction.c +++ b/fs

[PATCH] mm: initialize kmem_cache pointer to NULL

2015-10-20 Thread Alexandru Moise
The assignment to NULL within the error condition was written in a 2014 patch to suppress a compiler warning. However it would be cleaner to just initialize the kmem_cache to NULL and just return it in case of an error condition. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.

[PATCH] mm: initialize kmem_cache pointer to NULL

2015-10-20 Thread Alexandru Moise
The assignment to NULL within the error condition was written in a 2014 patch to suppress a compiler warning. However it would be cleaner to just initialize the kmem_cache to NULL and just return it in case of an error condition. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.

[PATCH] btrfs: switch __btrfs_fs_incompat return type from int to bool

2015-10-18 Thread Alexandru Moise
Conform to __btrfs_fs_incompat() cast-to-bool (!!) by explicitly returning boolean not int. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/ctree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 9

[PATCH] btrfs: switch __btrfs_fs_incompat return type from int to bool

2015-10-18 Thread Alexandru Moise
Conform to __btrfs_fs_incompat() cast-to-bool (!!) by explicitly returning boolean not int. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/ctree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 9

Re: [PATCH 2/2] mm: fix declarations of nr, delta and nr_pagecache_reclaimable

2015-09-29 Thread Alexandru Moise
On Tue, Sep 29, 2015 at 10:28:57PM -0700, Andrew Morton wrote: > On Wed, 30 Sep 2015 08:10:04 +0300 Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > > > > --- a/mm/vmscan.c > > > > +++ b/mm/vmscan.c > > > > @@ -194,7 +194,7

Re: [PATCH 2/2] mm: fix declarations of nr, delta and nr_pagecache_reclaimable

2015-09-29 Thread Alexandru Moise
> > --- a/mm/vmscan.c > > +++ b/mm/vmscan.c > > @@ -194,7 +194,7 @@ static bool sane_reclaim(struct scan_control *sc) > > > > static unsigned long zone_reclaimable_pages(struct zone *zone) > > { > > - int nr; > > + unsigned long nr; > > > > nr = zone_page_state(zone, NR_ACTIVE_FILE)

Re: [PATCH] btrfs: remove unneeded NULL initializer for struct fs_path

2015-09-29 Thread Alexandru Moise
On Tue, Sep 29, 2015 at 02:32:29PM +0200, David Sterba wrote: > On Sat, Sep 26, 2015 at 12:05:19PM +0000, Alexandru Moise wrote: > > fs_path_alloc() either returns an alloc'ed struct fs_path > > or NULL, no need to initialize the pointer to NULL. > > > > Sig

Re: [PATCH 1/2] mm: change free_cma and free_pages declarations to unsigned

2015-09-29 Thread Alexandru Moise
On Tue, Sep 29, 2015 at 11:13:27AM +0100, Mel Gorman wrote: > On Sun, Sep 27, 2015 at 09:04:16PM +0000, Alexandru Moise wrote: > > Their stored values come from zone_page_state() which returns > > an unsigned long. To improve code correctness we should avoid > > mixing signed

Re: [PATCH 1/2] mm: change free_cma and free_pages declarations to unsigned

2015-09-29 Thread Alexandru Moise
On Tue, Sep 29, 2015 at 11:13:27AM +0100, Mel Gorman wrote: > On Sun, Sep 27, 2015 at 09:04:16PM +0000, Alexandru Moise wrote: > > Their stored values come from zone_page_state() which returns > > an unsigned long. To improve code correctness we should avoid > > mixing signed

Re: [PATCH] btrfs: remove unneeded NULL initializer for struct fs_path

2015-09-29 Thread Alexandru Moise
On Tue, Sep 29, 2015 at 02:32:29PM +0200, David Sterba wrote: > On Sat, Sep 26, 2015 at 12:05:19PM +0000, Alexandru Moise wrote: > > fs_path_alloc() either returns an alloc'ed struct fs_path > > or NULL, no need to initialize the pointer to NULL. > > > > Sig

Re: [PATCH 2/2] mm: fix declarations of nr, delta and nr_pagecache_reclaimable

2015-09-29 Thread Alexandru Moise
On Tue, Sep 29, 2015 at 10:28:57PM -0700, Andrew Morton wrote: > On Wed, 30 Sep 2015 08:10:04 +0300 Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > > > > --- a/mm/vmscan.c > > > > +++ b/mm/vmscan.c > > > > @@ -194,7 +194,7

Re: [PATCH 2/2] mm: fix declarations of nr, delta and nr_pagecache_reclaimable

2015-09-29 Thread Alexandru Moise
> > --- a/mm/vmscan.c > > +++ b/mm/vmscan.c > > @@ -194,7 +194,7 @@ static bool sane_reclaim(struct scan_control *sc) > > > > static unsigned long zone_reclaimable_pages(struct zone *zone) > > { > > - int nr; > > + unsigned long nr; > > > > nr = zone_page_state(zone, NR_ACTIVE_FILE)

  1   2   >