Backport bug fixes from upstream. It appears this isn't as simple as just grabbing any stable 4.0.y patches, we also need to look at 3.10.y (and other branches) since not everything made it into stable-4.0.y, unfortunately.
specifically, iscsi-target: Fix use-after-free during TPG session shutdown 417c20a9bdd1e876384127cf096d8ae8b559066c was missed and encountered by a user.
*** This bug has been marked as a duplicate of bug 1278224 ***