Re: [PATCH 01/12] target: Convert se_node_acl->device_list to RCU hlist
From: Christoph Hellwig
Date: Wed May 13 2015 - 02:48:26 EST
On Tue, May 12, 2015 at 11:20:12PM -0700, Nicholas A. Bellinger wrote:
> Ugh, yes. Fixing up clear_lun_from_tpg + free_device_list_for_node to
> use a common caller acquiring se_node_acl->lun_entry_mutex during
> se_dev_entry release.
> Fixing up target_fabric_mappedlun_unlink() as well.
Good prep for that one might be:
> > The case where we have an original one is the demo mode -> explicit
> > change. So I don't think we actually need the newly allocate dev
> > entry here. Just change lun_flags like in core_update_device_list_access
> > and do an rcu_assign_pointer for the lun ACLs.
> Will take a look at this.
FYI, this was my idea how to handle the transition from generate
to explicit ACLs:
I don't think it's quite correct, though as we need to update ->lun_flags
in the transition case as well.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/