get a deadlock when insmod ftl
Gu Zheng
guzheng1 at huawei.com
Thu Feb 23 04:59:26 PST 2017
hi Brian Norris & David Woodhouse:
we found this deadlock with kernel version 4.1. then we found it maybe also exist after saw the code on 4.10.
when insmod the ftl module, which register_mtd_blktrans.
-> register_mtd_blktrans()
-> mutex_lock(&mtd_table_mutex)
-> ftl_add_mtd()
-> add_mtd_blktrans_dev()
-> device_add_disk()
-> register_disk()
-> blkdev_get()
-> __blkdev_get()
-> blktrans_open()
-> mutex_lock(&mtd_table_mutex); !!!!!!!
the hung task log in attachment.
do you have any good ideas?
thanks,thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 815263C2-D050-4226-B1A5-13ED60462D4F.png
Type: image/png
Size: 42954 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20170223/9785c360/attachment-0001.png>
More information about the linux-mtd
mailing list