summaryrefslogtreecommitdiff
path: root/fs/bcachefs/seqmutex.h
AgeCommit message (Collapse)AuthorFilesLines
2023-10-23bcachefs: seqmutex; fix a lockdep splatKent Overstreet1-0/+48
We can't be holding btree_trans_lock while copying to user space, which might incur a page fault. To fix this, convert it to a seqmutex so we can unlock/relock. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>