isert: add assertions for connection teardwon flow

Signed-off-by: Israel Rukshin <israelr@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Israel Rukshin
2016-08-17 07:27:11 +00:00
parent c3827a6f54
commit a3b45f61bf
2 changed files with 4 additions and 1 deletions

View File

@@ -2035,6 +2035,8 @@ static int scsi_cmnd_start(struct iscsi_cmnd *req)
atomic_inc(&session->active_cmds);
req->dec_active_cmds = 1;
sBUG_ON(session->scst_sess == NULL);
scst_cmd = scst_rx_cmd(session->scst_sess,
(uint8_t *)&req_hdr->lun, sizeof(req_hdr->lun),
req_hdr->scb, sizeof(req_hdr->scb), SCST_NON_ATOMIC);

View File

@@ -1271,7 +1271,7 @@ static void isert_kref_free(struct kref *kref)
TRACE_ENTRY();
pr_info("isert_conn_free conn:%p\n", isert_conn);
pr_info("%s conn:%p\n", __func__, isert_conn);
isert_free_conn_resources(isert_conn);
@@ -1306,6 +1306,7 @@ static void isert_kref_free(struct kref *kref)
void isert_conn_free(struct isert_connection *isert_conn)
{
sBUG_ON(atomic_read(&isert_conn->kref.refcount) == 0);
kref_put(&isert_conn->kref, isert_kref_free);
}