All of lore.kernel.org
 help / color / mirror / Atom feed
* get a deadlock when insmod ftl
@ 2017-02-23 12:59 Gu Zheng
  0 siblings, 0 replies; only message in thread
From: Gu Zheng @ 2017-02-23 12:59 UTC (permalink / raw)
  To: computersforpeace, dwmw2
  Cc: linux-mtd, miaoxie, guohanjun, Zhaohongjiang, yi.zhang@huawei.com

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

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!

[-- Attachment #2: 815263C2-D050-4226-B1A5-13ED60462D4F.png --]
[-- Type: image/png, Size: 42954 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-23 13:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 12:59 get a deadlock when insmod ftl Gu Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.