linux-yocto/6.18: mtd: use refcount to prevent corruption
Integrating the following commit(s) to linux-yocto/6.18:
1/1 [
Author: Liwei Song
Email: liwei.song@windriver.com
Subject: Revert "mtd_blkdevs: add mtd_table_mutex lock back to blktrans_{open, release} to avoid race condition"
Date: Wed, 24 Dec 2025 15:32:34 +0800
This reverts commit
957b188b585a4f1f9f3a39198b06a6fd62d6827d.
The issue that this patch is trying to resolve has been fixed by
upstream commit
19bfa9ebebb5 ("mtd: use refcount to prevent corruption")
so this local patch can be reverted, if not, it will cause an unbalanced
refcnt issue when open/close mtd device.
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>