summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2014-07-28 20:37:17 +0200
committerChris Mason <clm@fb.com>2014-09-17 22:37:56 +0200
commit160f4089c8580b32b5805e7fd8ec7b3810f442c1 (patch)
tree9134be532e8fb6d6875fd62d74ee37605094d8b9 /fs/btrfs/extent-tree.c
parentBtrfs: unlock nodes earlier when inserting items in a btree (diff)
downloadlinux-160f4089c8580b32b5805e7fd8ec7b3810f442c1.tar.xz
linux-160f4089c8580b32b5805e7fd8ec7b3810f442c1.zip
Btrfs: avoid unnecessary switch of path locks to blocking mode
If we need to cow a node, increase the write lock level and retry the tree search, there's no point of changing the node locks in our path to blocking mode, as we only waste time and unnecessarily wake up other tasks waiting on the spinning locks (just to block them again shortly after) because we release our path before repeating the tree search. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions