[PATCH] ocfs2: Remove redundant conditional before iput

2020-12-30 Thread Yi Li
iput handles NULL pointers gracefully, so there's no need to check the pointer before the call. Signed-off-by: Yi Li --- fs/ocfs2/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 2febc76e9de7..079f8826993e 100644 --- a/fs/ocfs2/super.c +++ b

[PATCH] Use IS_ERR instead of IS_ERR_OR_NULL and set inode null when IS_ERR.

2020-12-29 Thread Yi Li
1: ext4_iget/ext4_find_extent never returns NULL, use IS_ERR instead of IS_ERR_OR_NULL to fix this. 2: ext4_fc_replay_inode should set the inode to NULL when IS_ERR. and go to call iput properly. Signed-off-by: Yi Li --- fs/ext4/fast_commit.c | 23 --- 1 file changed, 12

[PATCH] bcache: set pdev_set_uuid before scond loop iteration

2020-12-23 Thread Yi Li
There is no need to reassign pdev_set_uuid in the second loop iteration, so move it to the place before second loop. Signed-off-by: Yi Li --- drivers/md/bcache/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index

[PATCH v4] bcache:remove a superfluous check in register_bcache

2020-12-21 Thread Yi Li
no need to do bdput. remove a superfluous check the bdev & don't call bdput after lookup_bdev. Fixes: 4e7b5671c6a8("block: remove i_bdev") Signed-off-by: Yi Li --- drivers/md/bcache/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md

[PATCH v2] bcache: Trivial fix to register_bcache

2020-12-20 Thread Yi Li
Trivial fix to no need to check the bdev and do bdput. Fixes: 4e7b5671c6a8("block: remove i_bdev") Signed-off-by: Yi Li --- drivers/md/bcache/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index f7ad1e26b013..4e

[PATCH] bcache: Trivial fix to bdput

2020-12-20 Thread Yi Li
Trivial fix to bdput. Signed-off-by: Yi Li --- drivers/md/bcache/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index f7ad1e26b013..1756f6926098 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache

[PATCH] bcache: fix UUID room exhausted fake issue.

2020-12-17 Thread Yi Li
The UUID room will be exhausted fake when loop attach/dettach backing dev. Using zero_uuid to the UUID room after dettach normaly. And attach dev can request UUID room successfully. Signed-off-by: Yi Li Signed-off-by: Li bing --- drivers/md/bcache/super.c | 20 +--- 1 file

[PATCH v3] bcache: fix panic due to cache_set is null

2020-12-03 Thread Yi Li
b0 [] worker_thread+0x2a5/0x470 [] ? __schedule+0x648/0x870 [] ? rescuer_thread+0x300/0x300 [] kthread+0xd5/0xe0 [] ? kthread_stop+0x110/0x110 [] ret_from_fork+0x3f/0x70 [] ? kthread_stop+0x110/0x110 Reported-by: Guo Chao Signed-off-by: Yi Li --- drivers/md/bcache/super.c | 1

Re: [PATCH v2] bcache: fix panic due to cache_set is null

2020-12-03 Thread Yi Li
On 12/3/20, Coly Li wrote: > On 12/3/20 5:47 PM, Yi Li wrote: >> bcache_device_detach will release the cache_set after hotunplug cache >> disk. >> >> Here is how the issue happens. >> 1) cached_dev_free do cancel_writeback_rate_update_dwork >>w

[PATCH v2] bcache: fix panic due to cache_set is null

2020-12-03 Thread Yi Li
881714e80 Call Trace: [] process_one_work+0x1fc/0x3b0 [] worker_thread+0x2a5/0x470 [] ? __schedule+0x648/0x870 [] ? rescuer_thread+0x300/0x300 [] kthread+0xd5/0xe0 [] ? kthread_stop+0x110/0x110 [] ret_from_fork+0x3f/0x70 [] ? kthread_stop+0x110/0x110 Reported-by: Guo Chao S

Re: [PATCH] bcache: fix panic due to cache_set is null

2020-12-03 Thread Yi Li
. (it is introduce by patch 80265d8dfd77792e133793cef44a21323aac2908) pls: 1: run the shell script #!/bin/bash while [ true ] do echo 0 > /sys/block/bcache0/bcache/writeback_percent done 2: hotplug the cache disk On 12/3/20, Coly Li wrote: > On 12/3/20 2:25 PM, Yi Li wrote: >&

Re: [PATCH] bcache: fix panic due to cache_set is null

2020-12-02 Thread Yi Li
> On 12/1/20 12:35 PM, Yi Li wrote: >> sorry, This patch will cause deadlock, i will check and redo it. > > Can you try latest upstream kernel firstly ? Before spending more time > on the fix. > This issue just happened three times (xenserver7.5 dom0 kernel) on the sa

Re: [PATCH] bcache: fix panic due to cache_set is null

2020-11-30 Thread Yi Li
sorry, This patch will cause deadlock, i will check and redo it. On 11/30/20, Yi Li wrote: > bcache_device_detach will release the cache_set after hotunplug cache > disk. update_writeback_rate should check validate of cache_set. > > IP: [] update_writeback_rate+0x59/0x3a0 [bca

[PATCH] bcache: fix panic due to cache_set is null

2020-11-30 Thread Yi Li
[] ? rescuer_thread+0x300/0x300 [] kthread+0xd5/0xe0 [] ? kthread_stop+0x110/0x110 [] ret_from_fork+0x3f/0x70 [] ? kthread_stop+0x110/0x110 Reported-by: Guo Chao Signed-off-by: Guo Chao Signed-off-by: Yi Li --- drivers/md/bcache/writeback.c | 12 +++- 1 file changed, 11 insertions(+), 1

[PATCH v3] net: core: Use skb_is_gso() in skb_checksum_help()

2020-10-27 Thread Yi Li
No functional changes, just minor refactoring. Signed-off-by: Yi Li --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 82dc6b48e45f..9e7f071b846c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3206,7 +3206,7 @@ int

[PATCH v2] net/core/dev.c : Use skb_is_gso

2020-10-25 Thread Yi Li
Trivial fix to use func skb_is_gso in place of test for skb_shinfo(skb)->gso_size. Signed-off-by: Yi Li --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 9499a414d67e..55f66e108059 100644 --- a/net/core/dev.c +++ b/

[PATCH] net treewide: Use skb_is_gso

2020-10-21 Thread Yi Li
(!skb_is_gso(skb)) Signed-off-by: Yi Li --- drivers/net/ethernet/atheros/atlx/atl1.c | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c| 2 +- drivers/net/ethernet/cavium/liquidio/lio_main.c| 2 +- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 2 +-

[PATCH] kvm/eventfd:do wildcard calculation before list_for_each_entry_safe

2020-09-10 Thread Yi Li
There is no need to calculate wildcard in each loop since wildcard is not changed. Signed-off-by: Yi Li --- virt/kvm/eventfd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index d6408bb497dc..c2323c27a28b 100644 --- a/virt/kvm

[PATCH] Remove duplicate include file

2020-09-09 Thread Yi Li
Remove duplicate include file Signed-off-by: Yi Li --- arch/arm/mm/mmu.c | 1 - mm/slab.h | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index c36f977b2ccb..7bbcdb29413e 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -34,7 +34,6

Re: [PATCH] bnx2x: correct a mistake when show error code

2020-08-29 Thread Yi Li
It is useless. The original code just tell some error info. and don't show errorcode On 8/29/20, Yi Li wrote: > use rc for error code. > > Signed-off-by: Yi Li > --- > drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions

[PATCH] bnx2x: correct a mistake when show error code

2020-08-29 Thread Yi Li
use rc for error code. Signed-off-by: Yi Li --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c index 1426c691c7c4

[PATCH] net: hns3: Fix for geneve tx checksum bug

2020-08-25 Thread Yi Li
doing the checksum in software. Reported-by: Li Bing Signed-off-by: Yi Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

[PATCH] perf tools: Use of the macro IS_ERR_OR_NULL

2019-10-21 Thread Yi Li
From: Yi Li This patch introduces the use of the macro IS_ERR_OR_NULL in place of tests for NULL and IS_ERR. The following Coccinelle semantic patch was used for making the change: @@ expression e; @@ - !e || IS_ERR(e) + IS_ERR_OR_NULL(e) || ... Signed-off-by: Yi Li --- tools/perf/util

[PATCH v2] ocfs2: fix panic due to ocfs2_wq is null

2019-10-15 Thread Yi Li
From: Yi Li mount.ocfs2 failed when read ocfs2 filesystem super error. the func ocfs2_initialize_super will return before allocate ocfs2_wq. ocfs2_dismount_volume will triggered the following panic. Oct 15 16:09:27 cnwarekv-205120 kernel: On-disk corruption discovered.Please run fsck.ocfs2

[PATCH v2] ocfs2: fix panic due to ocfs2_wq is null

2019-10-15 Thread Yi Li
From: Yi Li mount.ocfs2 failed when read ocfs2 filesystem super error. the func ocfs2_initialize_super will return before allocate ocfs2_wq. ocfs2_dismount_volume will triggered the following panic. Oct 15 16:09:27 cnwarekv-205120 kernel: On-disk corruption discovered.Please run fsck.ocfs2

[PATCH] ocfs2: fix panic due to ocfs2_wq is null

2019-10-15 Thread Yi Li
+0x17f/0x1c0 mount_fs+0x3a/0x160 Signed-off-by: Yi Li --- fs/ocfs2/localalloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c index 158e5af..943e5c3 100644 --- a/fs/ocfs2/localalloc.c +++ b/fs/ocfs2/localalloc.c @@ -377,7 +377,9

Re: [PATCH v3] fpga manager: Add Altera CvP driver

2017-04-25 Thread Yi Li
hi Anatolij On 04/21/2017 04:14 PM, Li, Yi wrote: On 4/20/2017 12:29 PM, matthew.gerl...@linux.intel.com wrote: On Thu, 20 Apr 2017, Anatolij Gustschin wrote: Add FPGA manager driver for loading Arria/Cyclone/Stratix FPGAs via CvP. Signed-off-by: Anatolij Gustschin ---

Re: [PATCH v3] fpga manager: Add Altera CvP driver

2017-04-25 Thread Yi Li
hi Anatolij On 04/21/2017 04:14 PM, Li, Yi wrote: On 4/20/2017 12:29 PM, matthew.gerl...@linux.intel.com wrote: On Thu, 20 Apr 2017, Anatolij Gustschin wrote: Add FPGA manager driver for loading Arria/Cyclone/Stratix FPGAs via CvP. Signed-off-by: Anatolij Gustschin --- Hi Anatolij,

[PATCH] xen: fix mcelog/stub depend issue in Kconfig

2015-02-13 Thread Yi Li
From: Yi Li Fix support mcelog/stub in Kconfig for Xen X86 platform Signed-off-by: Yi Li --- drivers/xen/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index b812462..83ae68a 100644 --- a/drivers/xen/Kconfig +++ b

[PATCH] xen: fix mcelog/stub depend issue in Kconfig

2015-02-13 Thread Yi Li
From: Yi Li yiliker...@gmail.com Fix support mcelog/stub in Kconfig for Xen X86 platform Signed-off-by: Yi Li yiliker...@gmail.com --- drivers/xen/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index b812462..83ae68a

[PATCH v2] arm64: dmi: Add SMBIOS/DMI support on arm64

2014-06-08 Thread Yi Li
this specfication. If ARM64 hopes to enter server market, then SMBIOS needs to support on ARM64, and it has been included as one important section in SBBR document from ARM. This has been tested by dmidecode and lshw tools. Signed-off-by: Yi Li --- Changes since v1: -Followed Ard Biesheuvel's

[PATCH v2] arm64: dmi: Add SMBIOS/DMI support on arm64

2014-06-08 Thread Yi Li
this specfication. If ARM64 hopes to enter server market, then SMBIOS needs to support on ARM64, and it has been included as one important section in SBBR document from ARM. This has been tested by dmidecode and lshw tools. Signed-off-by: Yi Li yi...@linaro.org --- Changes since v1: -Followed Ard

Re: [PATCH] ARM64:DMI: Add smbios/dmi support on arm64

2014-06-04 Thread Yi Li
Hi Mark, Please see the comments below: On Wednesday, June 04, 2014 09:32 PM, Mark Rutland wrote: On Tue, Jun 03, 2014 at 04:57:13PM +0100, Yi Li wrote: Add smbios/dmi support on arm64 system, it depends on EFI boot. And what exactly does this provide us with? What is exposed through

Re: [PATCH] ARM64:DMI: Add smbios/dmi support on arm64

2014-06-04 Thread Yi Li
Hi Mark, Please see the comments below: On Wednesday, June 04, 2014 09:32 PM, Mark Rutland wrote: On Tue, Jun 03, 2014 at 04:57:13PM +0100, Yi Li wrote: Add smbios/dmi support on arm64 system, it depends on EFI boot. And what exactly does this provide us with? What is exposed through

[PATCH] ARM64:DMI: Add smbios/dmi support on arm64

2014-06-03 Thread Yi Li
Add smbios/dmi support on arm64 system, it depends on EFI boot. Signed-off-by: Yi Li --- Changes since v1: -Followed Ard Biesheuvel's suggestion to rebase the patch on Matt Fleming's arm64-efi branch. arch/arm64/Kconfig | 10 ++ arch/arm64/include/asm/dmi.h | 28

[PATCH] ARM64:DMI: Add smbios/dmi support on arm64

2014-06-03 Thread Yi Li
Add smbios/dmi support on arm64 system, it depends on EFI boot. Signed-off-by: Yi Li yi...@linaro.org --- Changes since v1: -Followed Ard Biesheuvel's suggestion to rebase the patch on Matt Fleming's arm64-efi branch. arch/arm64/Kconfig | 10 ++ arch/arm64/include/asm

[PATCH] Add dmi driver support on arm

2013-09-06 Thread Yi Li
From: liyi x86 and IA64 have the DMI support, which is useful for supporting SMBIOS specification. All these SMBIOS tables will give the hardware information for user or applications. This patch depends on EFI runtime service function which not yet upstreamed, it has been generated against the

[PATCH] ARM:DMI: Add dmi driver support on arm

2013-09-06 Thread Yi Li
From: liyi Add dmi driver support on arm, it depends on efi runtime service enabled. Signed-off-by: liyi --- arch/arm/Kconfig |9 + arch/arm/include/asm/dmi.h | 12 arch/arm/kernel/setup.c|7 ++- 3 files changed, 27 insertions(+), 1 deletion(-)

[PATCH] ARM:DMI: Add dmi driver support on arm

2013-09-06 Thread Yi Li
From: liyi yi...@linaro.org Add dmi driver support on arm, it depends on efi runtime service enabled. Signed-off-by: liyi yi...@linaro.org --- arch/arm/Kconfig |9 + arch/arm/include/asm/dmi.h | 12 arch/arm/kernel/setup.c|7 ++- 3 files changed,

[PATCH] Add dmi driver support on arm

2013-09-06 Thread Yi Li
From: liyi yi...@linaro.org x86 and IA64 have the DMI support, which is useful for supporting SMBIOS specification. All these SMBIOS tables will give the hardware information for user or applications. This patch depends on EFI runtime service function which not yet upstreamed, it has been

XFS file system Pre-Release

2001-01-29 Thread Yi Li
SGI has made available the pre-release version 0.9 of its high-end XFS file system ported to Linux®. Code and detailed information are at http://oss.sgi.com/projects/xfs/prerelease.html. Thanks to the extensive interest and contributions from the community, the XFS file system for Linux has

XFS file system Pre-Release

2001-01-29 Thread Yi Li
SGI has made available the pre-release version 0.9 of its high-end XFS file system ported to Linux. Code and detailed information are at http://oss.sgi.com/projects/xfs/prerelease.html. Thanks to the extensive interest and contributions from the community, the XFS file system for Linux has made