diff options
author | Jeff Layton <[email protected]> | 2022-03-14 15:47:18 -0400 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2023-08-22 09:01:47 +0200 |
commit | 08b8a0440eeec83f8330349f829908858fd52d31 (patch) | |
tree | b4eb65a8149b193d7d7baf002f2dfdcccd301b12 /net/lapb/lapb_in.c | |
parent | 706a741595047797872e669b3101429ab8d378ef (diff) |
libceph: add spinlock around osd->o_requests
In a later patch, we're going to need to search for a request in
the rbtree, but taking the o_mutex is inconvenient as we already
hold the con mutex at the point where we need it.
Add a new spinlock that we take when inserting and erasing entries from
the o_requests tree. Search of the rbtree can be done with either the
mutex or the spinlock, but insertion and removal requires both.
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Xiubo Li <[email protected]>
Reviewed-and-tested-by: Luís Henriques <[email protected]>
Reviewed-by: Milind Changire <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions