On 03/30/2015 05:08 AM, Christoph Hellwig wrote:
Fortunately there is the old patch from Andy to make the se_dev_entry dynamically allocated, which comes in useful here. With that we might only change the rdonly flag on a live dev entry, or assign an ACL when it previously was NULL, something that RCU can handle nicely. I've pushed a git tree to git://git.infradead.org/users/hch/scsi.git target-rcu-hch Gitweb: http://git.infradead.org/users/hch/scsi.git/shortlog/refs/heads/target-rcu-hch that implements this scheme. Note that I dropped the percpu refcount changes - the reference is only taken in the SCSI3-PR slow path, and the percpu refcount API is extremly cumbersome.
I dug my patches up and rebased on top of target-pending/for-next. Pushed here:
git://git.kernel.org/pub/scm/linux/kernel/git/grover/linux.git mar30-dynalloc-deve
https://git.kernel.org/cgit/linux/kernel/git/grover/linux.git/log/?h=mar30-dynalloc-deve if this is helpful for your efforts. Regards -- Andy -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html