From: Bart Van Assche <bart.vanassche@sandisk.com>
To: "Nicholas A. Bellinger" <nab@daterainc.com>,
target-devel <target-devel@vger.kernel.org>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>,
Sagi Grimberg <sagig@mellanox.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Nicholas Bellinger <nab@linux-iscsi.org>
Subject: Re: [PATCH-v2 2/4] target: Drop lun_sep_lock for se_lun->lun_se_dev RCU usage
Date: Tue, 26 May 2015 16:30:12 +0200 [thread overview]
Message-ID: <55648374.80802@sandisk.com> (raw)
In-Reply-To: <1432623445-25776-3-git-send-email-nab@daterainc.com>
On 05/26/15 08:57, Nicholas A. Bellinger wrote:
> @@ -625,6 +626,7 @@ int core_dev_add_initiator_node_lun_acl(
> u32 lun_access)
> {
> struct se_node_acl *nacl = lacl->se_lun_nacl;
> + struct se_device *dev = lockless_dereference(lun->lun_se_dev);
>
> if (!nacl)
> return -EINVAL;
An attempt to run this code on a system with RCU debugging enabled
resulted in the following complaint:
===============================
[ INFO: suspicious RCU usage. ]
4.1.0-rc1-lio-dbg+ #1 Not tainted
-------------------------------
drivers/target/target_core_device.c:617 suspicious rcu_dereference_check() usage!
other info that might help us debug this:
rcu_scheduler_active = 1, debug_locks = 1
2 locks held by ln/1497:
#0: (sb_writers#11){.+.+.+}, at: [<ffffffff811d9ca4>] mnt_want_write+0x24/0x50
#1: (&sb->s_type->i_mutex_key#14/1){+.+.+.}, at: [<ffffffff811c4cdd>] filename_create+0xad/0x1a0
stack backtrace:
CPU: 0 PID: 1497 Comm: ln Not tainted 4.1.0-rc1-lio-dbg+ #1
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
0000000000000001 ffff88005955bd68 ffffffff814fa346 0000000000000011
ffff880058bf1270 ffff88005955bd98 ffffffff810ab235 ffff880050db9a68
ffff880058ae2e68 0000000000000002 ffff880058ae4120 ffff88005955be08
Call Trace:
[<ffffffff814fa346>] dump_stack+0x4f/0x7b
[<ffffffff810ab235>] lockdep_rcu_suspicious+0xd5/0x110
[<ffffffffa04324bc>] core_dev_add_initiator_node_lun_acl+0xec/0x190 [target_core_mod]
[<ffffffff8108f871>] ? get_parent_ip+0x11/0x50
[<ffffffffa04346f9>] target_fabric_mappedlun_link+0x129/0x240 [target_core_mod]
[<ffffffffa043466c>] ? target_fabric_mappedlun_link+0x9c/0x240 [target_core_mod]
[<ffffffffa035824d>] configfs_symlink+0x13d/0x360 [configfs]
[<ffffffff811be8c8>] vfs_symlink+0x58/0xb0
[<ffffffff811c75c5>] SyS_symlink+0x65/0xc0
[<ffffffff81502eb2>] system_call_fastpath+0x16/0x7a
next prev parent reply other threads:[~2015-05-26 14:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 6:57 [PATCH-v2 0/4] target: Eliminate se_port + t10_alua_tg_pt_gp_member Nicholas A. Bellinger
2015-05-26 6:57 ` [PATCH-v2 1/4] target: Subsume se_port + t10_alua_tg_pt_gp_member into se_lun Nicholas A. Bellinger
2015-05-26 6:57 ` [PATCH-v2 2/4] target: Drop lun_sep_lock for se_lun->lun_se_dev RCU usage Nicholas A. Bellinger
2015-05-26 14:30 ` Bart Van Assche [this message]
2015-05-27 5:29 ` Nicholas A. Bellinger
2015-05-27 21:04 ` Paul E. McKenney
2015-05-28 6:02 ` Nicholas A. Bellinger
2015-05-28 15:57 ` Paul E. McKenney
2015-05-31 5:24 ` Nicholas A. Bellinger
2015-06-01 18:00 ` Paul E. McKenney
2015-05-26 6:57 ` [PATCH-v2 3/4] target: Drop se_lun->lun_active for existing percpu lun_ref Nicholas A. Bellinger
2015-05-26 6:57 ` [PATCH-v2 4/4] target: Drop unnecessary core_tpg_register TFO parameter Nicholas A. Bellinger
2015-05-26 9:43 ` [PATCH-v2 0/4] target: Eliminate se_port + t10_alua_tg_pt_gp_member Hannes Reinecke
2015-05-26 12:44 ` Bart Van Assche
2015-05-27 5:13 ` Nicholas A. Bellinger
2015-05-27 20:36 ` Paul E. McKenney
2015-05-28 5:41 ` Nicholas A. Bellinger
2015-05-28 15:48 ` Paul E. McKenney
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=55648374.80802@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=nab@daterainc.com \
--cc=nab@linux-iscsi.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=sagig@mellanox.com \
--cc=target-devel@vger.kernel.org \
/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 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.