mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
fcst: Eliminate ft_cmd.serial
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4964 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -95,7 +95,6 @@ struct ft_tport {
|
||||
* Commands
|
||||
*/
|
||||
struct ft_cmd {
|
||||
int serial; /* order received, for debugging */
|
||||
struct fc_seq *seq; /* sequence in exchange mgr */
|
||||
struct fc_frame *req_frame; /* original request frame */
|
||||
u32 write_data_len; /* data received from initiator */
|
||||
|
||||
@@ -563,7 +563,6 @@ static void ft_recv_tm(struct scst_session *scst_sess,
|
||||
*/
|
||||
static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp)
|
||||
{
|
||||
static atomic_t serial;
|
||||
struct fc_seq *sp;
|
||||
struct scst_cmd *cmd;
|
||||
struct ft_cmd *fcmd;
|
||||
@@ -577,7 +576,6 @@ static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp)
|
||||
fcmd = kzalloc(sizeof(*fcmd), GFP_ATOMIC);
|
||||
if (!fcmd)
|
||||
goto busy;
|
||||
fcmd->serial = atomic_inc_return(&serial); /* debug only */
|
||||
fcmd->max_payload = sess->max_payload;
|
||||
fcmd->max_lso_payload = sess->max_lso_payload;
|
||||
fcmd->req_frame = fp;
|
||||
|
||||
Reference in New Issue
Block a user