Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-06-23 | bcachefs: fix seqmutex_relock() | Kent Overstreet | |
We were grabbing the sequence number before unlock incremented it - fix this by moving the increment to seqmutex_lock() (so the seqmutex_relock() failure path skips the mutex_trylock()), and returning the sequence number from unlock(), to make the API simpler and safer. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> | |||
2023-10-22 | bcachefs: seqmutex; fix a lockdep splat | Kent Overstreet | |
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> |