mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 20:21:30 +00:00
Merge r5837 from the iser branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6273 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -65,6 +65,7 @@ static void cmnd_remove_data_wait_hash(struct iscsi_cmnd *cmnd);
|
||||
static void iscsi_send_task_mgmt_resp(struct iscsi_cmnd *req, int status,
|
||||
bool dropped);
|
||||
static void iscsi_check_send_delayed_tm_resp(struct iscsi_session *sess);
|
||||
static void req_cmnd_release(struct iscsi_cmnd *req);
|
||||
static int cmnd_insert_data_wait_hash(struct iscsi_cmnd *cmnd);
|
||||
static void iscsi_cmnd_init_write(struct iscsi_cmnd *rsp, int flags);
|
||||
static void iscsi_set_resid_no_scst_cmd(struct iscsi_cmnd *rsp);
|
||||
@@ -643,6 +644,7 @@ out:
|
||||
TRACE_EXIT();
|
||||
return;
|
||||
}
|
||||
EXPORT_SYMBOL(req_cmnd_release_force);
|
||||
|
||||
void req_cmnd_pre_release(struct iscsi_cmnd *req)
|
||||
{
|
||||
@@ -710,7 +712,7 @@ EXPORT_SYMBOL(req_cmnd_pre_release);
|
||||
* Corresponding conn may also get destroyed after this function, except only
|
||||
* if it's called from the read thread!
|
||||
*/
|
||||
void req_cmnd_release(struct iscsi_cmnd *req)
|
||||
static void req_cmnd_release(struct iscsi_cmnd *req)
|
||||
{
|
||||
TRACE_ENTRY();
|
||||
|
||||
@@ -720,7 +722,6 @@ void req_cmnd_release(struct iscsi_cmnd *req)
|
||||
TRACE_EXIT();
|
||||
return;
|
||||
}
|
||||
EXPORT_SYMBOL(req_cmnd_release);
|
||||
|
||||
/*
|
||||
* Corresponding conn may also get destroyed after this function, except only
|
||||
|
||||
@@ -853,7 +853,6 @@ extern void iscsi_set_resid(struct iscsi_cmnd *rsp);
|
||||
extern int iscsi_init_conn(struct iscsi_session *session,
|
||||
struct iscsi_kern_conn_info *info, struct iscsi_conn *conn);
|
||||
extern void req_cmnd_pre_release(struct iscsi_cmnd *req);
|
||||
extern void req_cmnd_release(struct iscsi_cmnd *req);
|
||||
extern struct iscsi_cmnd *create_status_rsp(struct iscsi_cmnd *req,
|
||||
int status, const u8 *sense_buf, int sense_len);
|
||||
extern int iscsi_cmnd_set_write_buf(struct iscsi_cmnd *req);
|
||||
|
||||
@@ -366,7 +366,7 @@ void isert_pdu_err(struct iscsi_cmnd *pdu)
|
||||
* for same PDU with multiple RDMAs case
|
||||
*/
|
||||
if (pdu->on_write_timeout_list)
|
||||
req_cmnd_release(pdu);
|
||||
req_cmnd_release_force(pdu);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user