RE: [PATCH bpf] selftests/bpf: add XDP_UMEM_TX_METADATA_LEN flag to umem_config

2024-12-20 Thread Wei Fang
> On Fri, Dec 20, 2024 at 05:18:06PM +0800, Wei Fang wrote: > > The Tx metadata test has been broken since the commit d5e726d9143c > ("xsk: > > Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len"). > > Nit: > > Fixes tag already include this in

RE: [PATCH bpf] selftests/bpf: add XDP_UMEM_TX_METADATA_LEN flag to umem_config

2024-12-20 Thread Wei Fang
> On 12/20, Wei Fang wrote: > > The Tx metadata test has been broken since the commit d5e726d9143c > ("xsk: > > Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len"). > Because > > this change requires XDP_UMEM_TX_METADATA_LEN flag to be set, > &g

[PATCH bpf] selftests/bpf: add XDP_UMEM_TX_METADATA_LEN flag to umem_config

2024-12-20 Thread Wei Fang
s that the driver cannot get Tx metadata and cannot execute AF_XDP Tx metadata hooks. Fixes: d5e726d9143c ("xsk: Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len") Signed-off-by: Wei Fang --- tools/testing/selftests/bpf/xdp_hw_metadata.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH 3.16 105/306] vfs,mm: fix a dead loop in truncate_inode_pages_range()

2017-02-15 Thread Wei Fang
has any objections, please let me know. > > ------ > > From: Wei Fang > > commit c2a9737f45e27d8263ff9643f994bda9bac0b944 upstream. > > We triggered a deadloop in truncate_inode_pages_range() on 32 bits > architecture with the test case bellow: > >

[PATCH v3] fs/dcache.c: avoid soft-lockup in dput()

2016-07-05 Thread Wei Fang
ble again should be safe. Cc: Signed-off-by: Wei Fang --- Changes v1->v2: - add might_sleep() to annotate that dput() can sleep Changes v2->v3: - put cond_resched() in dput() fs/dcache.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/dcache.c b/fs/dcach

Re: [PATCH v2] fs/dcache.c: avoid soft-lockup in dput()

2016-07-05 Thread Wei Fang
Hi, Boqun, >> diff --git a/fs/dcache.c b/fs/dcache.c >> index d5ecc6e..074fc1c 100644 >> --- a/fs/dcache.c >> +++ b/fs/dcache.c >> @@ -578,7 +578,7 @@ static struct dentry *dentry_kill(struct dentry *dentry) >> >> failed: >> spin_unlock(&dentry->d_lock); >> -cpu_relax(); >> +cond_r

[PATCH v2] fs/dcache.c: avoid soft-lockup in dput()

2016-06-21 Thread Wei Fang
ble again should be safe. Cc: Signed-off-by: Wei Fang --- Changes v1->v2: - add might_sleep() to annotate that dput() can sleep fs/dcache.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index d5ecc6e..074fc1c 100644 --- a/fs/dcache.c ++

[PATCH RESEND] bfs: fix i_blocks accounting

2016-03-21 Thread Wei Fang
Update inode->i_blocks if succeed to get block, otherwise we'll get wrong number of blocks. Signed-off-by: Wei Fang --- fs/bfs/file.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/bfs/file.c b/fs/bfs/file.c index 97f1b51..f89abdb 100644 --- a/fs/bfs/file

Re: [PATCH v3 08/32] scsi: hisi_sas: add hisi_sas_remove

2015-11-09 Thread Wei Fang
Hi John, On 2015/11/10 0:32, John Garry wrote: > This patch also includes relevant memory/pool > free'ing and sas/scsi host removal > > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 71 > ++- > 1 file changed, 70 insertions(+), 1 dele

[PATCH] bfs: fix i_blocks accounting

2015-11-02 Thread Wei Fang
Update inode->i_blocks if succeed to get block, otherwise we'll get wrong number of blocks. Signed-off-by: Wei Fang --- fs/bfs/file.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/bfs/file.c b/fs/bfs/file.c index 97f1b51..f89abdb 100644 --- a/fs/bfs/file