From: Gu Zheng <guzheng1@huawei.com>
To: <computersforpeace@gmail.com>, <dwmw2@infradead.org>
Cc: <linux-mtd@lists.infradead.org>, <miaoxie@huawei.com>,
<guohanjun@huawei.com>, Zhaohongjiang <zhaohongjiang@huawei.com>,
"yi.zhang@huawei.com" <yi.zhang@huawei.com>
Subject: get a deadlock when insmod ftl
Date: Thu, 23 Feb 2017 20:59:26 +0800 [thread overview]
Message-ID: <58AEDCAE.9000803@huawei.com> (raw)
[-- 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 --]
reply other threads:[~2017-02-23 13:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58AEDCAE.9000803@huawei.com \
--to=guzheng1@huawei.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=guohanjun@huawei.com \
--cc=linux-mtd@lists.infradead.org \
--cc=miaoxie@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=zhaohongjiang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).