Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: discard path uses unlock_long()

Some (bad) devices can have really terrible discard latency; we don't
want them blocking memory reclaim and causing warnings.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+1 -1
+1 -1
fs/bcachefs/alloc_background.c
··· 1715 1715 * This works without any other locks because this is the only 1716 1716 * thread that removes items from the need_discard tree 1717 1717 */ 1718 - bch2_trans_unlock(trans); 1718 + bch2_trans_unlock_long(trans); 1719 1719 blkdev_issue_discard(ca->disk_sb.bdev, 1720 1720 k.k->p.offset * ca->mi.bucket_size, 1721 1721 ca->mi.bucket_size,