diff options
author | Nilay Shroff <nilay@linux.ibm.com> | 2025-07-19 16:26:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-07-20 22:18:13 +0300 |
commit | 1966554b2e82b89d4f6490f430ce76a379e23f1f (patch) | |
tree | 97b50573bcdcafcb0470f7e8c8ba6e6d1cfdc7af /lib/crypto/mpi/mpiutil.c | |
parent | 2680efde75ccdd745da7ae6f5e30026f70439588 (diff) | |
download | linux-1966554b2e82b89d4f6490f430ce76a379e23f1f.tar.xz |
block: fix module reference leak in mq-deadline I/O scheduler
During probe, when the block layer registers a request queue, it
defaults to the mq-deadline I/O scheduler if the device is single-queue
and the mq-deadline module is available. To determine availability, the
elevator_set_default() invokes elevator_find_get(), which increments the
module's reference count. However, this reference is never released,
resulting in a module reference leak that prevents the mq-deadline module
from being unloaded.
This patch fixes the issue by ensuring the acquired module reference is
properly released.
Fixes: 1e44bedbc921 ("block: unifying elevator change")
Signed-off-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250719132722.769536-1-nilay@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions