mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user