[PATCH] mm/shmem: fix up gfpmask for shmem hugepage allocation

2020-10-21 Thread Xu Yu
sometimes. This applies the effect of defrag option of anonymous hugepage to shmem hugepage too. By doing so, we can control the defrag behavior of both kinds of THP. This also explicitly adds the SHMEM_HUGE_ALWAYS case in shmem_getpage_gfp, for better code reading. Signed-off-by: Xu Yu --- mm

[PATCH v2] bpf: do not restore dst_reg when cur_state is freed

2019-03-21 Thread Xu Yu
ply fix it by testing ret of push_stack() before retoring dst_reg. Signed-off-by: Xu Yu --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index ce166a0..cb1b874 100644 --- a/kernel/bpf/verifier.c +++

[PATCH] bpf: do not restore dst_reg when cur_state is freed

2019-03-21 Thread Xu Yu
ply fix it by checking whether cur_state is NULL before retoring dst_reg. Signed-off-by: Xu Yu --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index ce166a0..018ce4f 100644 --- a/kernel/bpf/verifier.c +++

[PATCH v3] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-24 Thread Xu Yu
nvme_configure_admin_queue(). This patch fixes this issue by remapping BAR0 before accessing admin CQ doorbell if the initial mapping is not enough. Signed-off-by: Xu Yu --- Changes since v2: * Add a sanity check in nvme_remap_bar(). * Keep constant 4096 in nvme_dev_map(). Changes since v1: * Move the

[PATCH v2] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-21 Thread Xu Yu
nvme_configure_admin_queue(). This patch fixes this issue by remapping BAR0 before accessing admin CQ doorbell if the initial mapping is not enough. Signed-off-by: Xu Yu --- Changes since v1: * Move the bar (re)mapping logic in nvme_dev_map(), nvme_configure_admin_queue() and nvme_setup_io_queues() to

RE: [PATCH] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-19 Thread Xu, Yu A
Thanks for your suggestion, we will try to make it better and resend the patch soon. -Original Message- From: Christoph Hellwig [mailto:h...@lst.de] Sent: Thursday, May 18, 2017 9:44 PM To: Xu, Yu A Cc: linux-n...@lists.infradead.org; linux-kernel@vger.kernel.org; Busch, Keith ; ax

[PATCH] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-17 Thread Xu Yu
nvme_configure_admin_queue(). This patch fixes this issue by remapping BAR0 before accessing admin CQ doorbell if the initial mapping is not enough. Signed-off-by: "Xu, Yu A" --- drivers/nvme/host/pci.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/nvme/host/pci.c