aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2015-05-14 20:41:07 +0100
committerChris Mason <[email protected]>2015-06-03 04:02:56 -0700
commit0f31871f4411b5c0d42fb4403dec83a21a96100b (patch)
treeed012f7057b95cd5b6dcea79ad99b49b14aad6b4 /net/switchdev/switchdev.c
parentc152b63efc94d5fd486a39e9df5e61ae77e08e44 (diff)
Btrfs: wake up extent state waiters on unlock through clear_extent_bits
When we clear an extent state's EXTENT_LOCKED bit with clear_extent_bits() through free_io_failure(), we weren't waking up any tasks waiting for the extent's state EXTENT_LOCKED bit, leading to an hang. So make sure clear_extent_bits() ends up waking up any waiters if the bit EXTENT_LOCKED is supplied by its callers. Zygo Blaxell was experiencing such hangs at inode eviction time after file unlinks. Thanks to him for a set of scripts to reproduce the issue. Reported-by: Zygo Blaxell <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: Liu Bo <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions