OSDN Git Service

btrfs: remove stale comment about locking at btrfs_search_slot()
authorFilipe Manana <fdmanana@suse.com>
Thu, 2 Dec 2021 10:30:40 +0000 (10:30 +0000)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:23 +0000 (14:18 +0100)
The comment refers to the old extent buffer locking code, where we used to
have custom locks that had blocking and spinning behaviour modes. That is
not the case anymore, since we have transitioned to rw semaphores, so the
comment does not offer any value anymore. Remove it.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c

index 36fc766..defc494 100644 (file)
@@ -1964,10 +1964,6 @@ again:
                }
 cow_done:
                p->nodes[level] = b;
-               /*
-                * Leave path with blocking locks to avoid massive
-                * lock context switch, this is made on purpose.
-                */
 
                /*
                 * we have a lock on b and as long as we aren't changing