aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorRoy Novich <[email protected]>2022-11-03 06:55:38 +0000
committerSaeed Mahameed <[email protected]>2022-11-09 18:30:42 +0000
commit2808b37b59288ad8f1897e3546c2296df3384b65 (patch)
treefa9d5fa8567025c80bc2e593fa81e05a1c9c3498 /fs/ext4/fast_commit.c
parentnet/mlx5: Bridge, verify LAG state when adding bond to bridge (diff)
downloadkernel-2808b37b59288ad8f1897e3546c2296df3384b65.tar.gz
kernel-2808b37b59288ad8f1897e3546c2296df3384b65.zip
net/mlx5: Allow async trigger completion execution on single CPU systems
For a single CPU system, the kernel thread executing mlx5_cmd_flush() never releases the CPU but calls down_trylock(&cmd→sem) in a busy loop. On a single processor system, this leads to a deadlock as the kernel thread which executes mlx5_cmd_invoke() never gets scheduled. Fix this, by adding the cond_resched() call to the loop, allow the command completion kernel thread to execute. Fixes: 8e715cd613a1 ("net/mlx5: Set command entry semaphore up once got index free") Signed-off-by: Alexander Schmidt <[email protected]> Signed-off-by: Roy Novich <[email protected]> Reviewed-by: Moshe Shemesh <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions