From 8c88d744294609bf282e71c4de74a96c8a495051 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Thu, 28 Mar 2024 14:35:59 +0300 Subject: [PATCH] LU-17688 ofd: access log to release chardev due to missing put_device() OFD access log leaks number of structures. Signed-off-by: Alex Zhuravlev Change-Id: I36109738201b98025bbd2e6ed7c8830044e505c2 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54606 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin Reviewed-by: James Simmons Reviewed-by: Andreas Dilger --- lustre/ofd/ofd_access_log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/ofd/ofd_access_log.c b/lustre/ofd/ofd_access_log.c index 1015203..c4a4338 100644 --- a/lustre/ofd/ofd_access_log.c +++ b/lustre/ofd/ofd_access_log.c @@ -578,6 +578,7 @@ void ofd_access_log_delete(struct ofd_access_log *oal) wake_up(&ocb->ocb_read_wait_queue); up_read(&oal->oal_buf_list_sem); cdev_device_del(&oal->oal_cdev, &oal->oal_device); + put_device(&oal->oal_device); } /* private_data for control device file. */ -- 1.8.3.1