summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBoris Burkov <boris@bur.io>2023-12-01 22:00:09 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-06 22:32:40 +0100
commitf63e1164b90b385cd832ff0fdfcfa76c3cc15436 (patch)
tree2ddef0ef594b5e497f4a1b291e413185c95187ec /sound
parentbtrfs: send: ensure send_fd is writable (diff)
downloadlinux-f63e1164b90b385cd832ff0fdfcfa76c3cc15436.tar.xz
linux-f63e1164b90b385cd832ff0fdfcfa76c3cc15436.zip
btrfs: free qgroup reserve when ORDERED_IOERR is set
An ordered extent completing is a critical moment in qgroup reserve handling, as the ownership of the reservation is handed off from the ordered extent to the delayed ref. In the happy path we release (unlock) but do not free (decrement counter) the reservation, and the delayed ref drives the free. However, on an error, we don't create a delayed ref, since there is no ref to add. Therefore, free on the error path. CC: stable@vger.kernel.org # 6.1+ Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Boris Burkov <boris@bur.io> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions