Message ID | 1427720489-13156-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
On 3/30/2015 4:01 PM, Luis Henriques wrote: > This is a note to let you know that I have just added a patch titled > > iscsi-target: Avoid early conn_logout_comp for iser connections > > to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree > which can be found at: > > http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.16.y-queue > > This patch is scheduled to be released in version 3.16.7-ckt10. > > If you, or anyone else, feels it should not be added to this tree, please > reply to this email. Umm, I think this patch was already objected. Please remove it from stable.
On Mon, Mar 30, 2015 at 04:04:51PM +0300, Sagi Grimberg wrote: > On 3/30/2015 4:01 PM, Luis Henriques wrote: > >This is a note to let you know that I have just added a patch titled > > > > iscsi-target: Avoid early conn_logout_comp for iser connections > > > >to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree > >which can be found at: > > > > http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.16.y-queue > > > >This patch is scheduled to be released in version 3.16.7-ckt10. > > > >If you, or anyone else, feels it should not be added to this tree, please > >reply to this email. > > Umm, I think this patch was already objected. Please remove it from > stable. Thank you for your feedback, Sagi. Unfortunately, I couldn't find any reference to an objection of this patch being included in stable trees. In fact, it looks like it has already been included in at least 3 stable releases: 3.19.3, 3.14.37 and 3.10.73. Could you please provide some more details or references? Cheers, -- Luís
On 3/30/2015 4:32 PM, Luis Henriques wrote: > On Mon, Mar 30, 2015 at 04:04:51PM +0300, Sagi Grimberg wrote: >> On 3/30/2015 4:01 PM, Luis Henriques wrote: >>> This is a note to let you know that I have just added a patch titled >>> >>> iscsi-target: Avoid early conn_logout_comp for iser connections >>> >>> to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree >>> which can be found at: >>> >>> http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.16.y-queue >>> >>> This patch is scheduled to be released in version 3.16.7-ckt10. >>> >>> If you, or anyone else, feels it should not be added to this tree, please >>> reply to this email. >> >> Umm, I think this patch was already objected. Please remove it from >> stable. > > Thank you for your feedback, Sagi. Unfortunately, I couldn't find any > reference to an objection of this patch being included in stable > trees. In fact, it looks like it has already been included in at > least 3 stable releases: 3.19.3, 3.14.37 and 3.10.73. > > Could you please provide some more details or references? Ohhh, got confused with: iscsi-target: Avoid IN_LOGOUT failure case for iser-target" has been added to staging queue Sorry, Please ignore this comment. Sagi.
On Mon, Mar 30, 2015 at 04:39:13PM +0300, Sagi Grimberg wrote: > On 3/30/2015 4:32 PM, Luis Henriques wrote: > >On Mon, Mar 30, 2015 at 04:04:51PM +0300, Sagi Grimberg wrote: > >>On 3/30/2015 4:01 PM, Luis Henriques wrote: > >>>This is a note to let you know that I have just added a patch titled > >>> > >>> iscsi-target: Avoid early conn_logout_comp for iser connections > >>> > >>>to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree > >>>which can be found at: > >>> > >>> http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.16.y-queue > >>> > >>>This patch is scheduled to be released in version 3.16.7-ckt10. > >>> > >>>If you, or anyone else, feels it should not be added to this tree, please > >>>reply to this email. > >> > >>Umm, I think this patch was already objected. Please remove it from > >>stable. > > > >Thank you for your feedback, Sagi. Unfortunately, I couldn't find any > >reference to an objection of this patch being included in stable > >trees. In fact, it looks like it has already been included in at > >least 3 stable releases: 3.19.3, 3.14.37 and 3.10.73. > > > >Could you please provide some more details or references? > > Ohhh, got confused with: > iscsi-target: Avoid IN_LOGOUT failure case for iser-target" has been added > to staging queue > Ah, yeah. That's the one that was reverted upstream. > Sorry, > > Please ignore this comment. > > Sagi. No problem. Thanks! Cheers, -- Luís
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 260c3e1e312c..209eb58b5d3a 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -4223,11 +4223,17 @@ int iscsit_close_connection( pr_debug("Closing iSCSI connection CID %hu on SID:" " %u\n", conn->cid, sess->sid); /* - * Always up conn_logout_comp just in case the RX Thread is sleeping - * and the logout response never got sent because the connection - * failed. + * Always up conn_logout_comp for the traditional TCP case just in case + * the RX Thread in iscsi_target_rx_opcode() is sleeping and the logout + * response never got sent because the connection failed. + * + * However for iser-target, isert_wait4logout() is using conn_logout_comp + * to signal logout response TX interrupt completion. Go ahead and skip + * this for iser since isert_rx_opcode() does not wait on logout failure, + * and to avoid iscsi_conn pointer dereference in iser-target code. */ - complete(&conn->conn_logout_comp); + if (conn->conn_transport->transport_type == ISCSI_TCP) + complete(&conn->conn_logout_comp); iscsi_release_thread_set(conn);