diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-02-07 21:48:19 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-27 22:49:49 +0100 |
commit | 24afc15dbe218f860994f627b4ba1fb09225a298 (patch) | |
tree | e70955fd091cd9b60af0c4a366c760795f48bd00 /arch/powerpc/kvm | |
parent | block/rnbd: client device does not care queue/rotational (diff) | |
download | linux-24afc15dbe218f860994f627b4ba1fb09225a298.tar.xz linux-24afc15dbe218f860994f627b4ba1fb09225a298.zip |
block/rnbd: Remove a useless mutex
According to lib/idr.c,
The IDA handles its own locking. It is safe to call any of the IDA
functions without synchronisation in your code.
so the 'ida_lock' mutex can just be removed.
It is here only to protect some ida_simple_get()/ida_simple_remove() calls.
While at it, switch to ida_alloc_XXX()/ida_free() instead to
ida_simple_get()/ida_simple_remove().
The latter is deprecated and more verbose.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/7f9eccd8b1fce1bac45ac9b01a78cf72f54c0a61.1644266862.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/powerpc/kvm')
0 files changed, 0 insertions, 0 deletions