Commit 6772ca45 authored by Ingo Molnar's avatar Ingo Molnar Committed by Thomas Gleixner

fs: btrfs locking workaround for preempt -rt

- btrfs_path_lock_waiting() looks rather dubious and there's no
  spin_is_contended() method on PREEMPT_RT - so exclude this for now

=> needs a proper fix later. Either this code gets zapped from btrfs
   upstream, or we add spin_is_contended() to PREEMPT_RT too.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ce5c9d0c
...@@ -94,6 +94,7 @@ static int btrfs_spin_on_block(struct extent_buffer *eb) ...@@ -94,6 +94,7 @@ static int btrfs_spin_on_block(struct extent_buffer *eb)
*/ */
int btrfs_try_spin_lock(struct extent_buffer *eb) int btrfs_try_spin_lock(struct extent_buffer *eb)
{ {
#ifndef CONFIG_PREEMPT_RT
int i; int i;
if (btrfs_spin_on_block(eb)) { if (btrfs_spin_on_block(eb)) {
...@@ -113,6 +114,7 @@ int btrfs_try_spin_lock(struct extent_buffer *eb) ...@@ -113,6 +114,7 @@ int btrfs_try_spin_lock(struct extent_buffer *eb)
return 1; return 1;
spin_unlock(&eb->lock); spin_unlock(&eb->lock);
} }
#endif
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment