From: Alex Zhuravlev Date: Thu, 28 Mar 2024 11:35:59 +0000 (+0300) Subject: LU-17688 ofd: access log to release chardev X-Git-Tag: 2.15.63~41 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F54606%2F6;p=fs%2Flustre-release.git 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 --- 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. */