Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commitcf47b8f

Browse files
chrismason-xxIngo Molnar
authored and
Ingo Molnar
committed
Btrfs: stop spinning on mutex_trylock and let the adaptive code spin for us
Mutexes now spin internally and the btrfs spin is no longer required forperformance.Signed-off-by: Chris Mason <chris.mason@oracle.com>Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parentac6e60e commitcf47b8f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

‎fs/btrfs/locking.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@
3737

3838
intbtrfs_tree_lock(structextent_buffer*eb)
3939
{
40-
inti;
41-
42-
if (mutex_trylock(&eb->mutex))
43-
return0;
44-
for (i=0;i<512;i++) {
45-
cpu_relax();
46-
if (mutex_trylock(&eb->mutex))
47-
return0;
48-
}
49-
cpu_relax();
5040
mutex_lock_nested(&eb->mutex,BTRFS_MAX_LEVEL-btrfs_header_level(eb));
5141
return0;
5242
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp