All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jslaby@suse.cz>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: target-devel <target-devel@vger.kernel.org>,
	stable <stable@vger.kernel.org>,
	Greg-KH <gregkh@linuxfoundation.org>,
	Himanshu Madhani <himanshu.madhani@qlogic.com>,
	Sagi Grimberg <sagig@mellanox.com>,
	Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>,
	Andy Grover <agrover@redhat.com>,
	Mike Christie <mchristi@redhat.com>
Subject: Re: [PATCH-v3.14.y 4/8] target: Fix LUN_RESET active I/O handling for ACK_KREF
Date: Mon, 14 Mar 2016 12:59:42 +0100	[thread overview]
Message-ID: <56E6A7AE.2010400@suse.cz> (raw)
In-Reply-To: <1457589587.4062.45.camel@haakon3.risingtidesystems.com>

On 03/10/2016, 06:59 AM, Nicholas A. Bellinger wrote:
>> but I think it is impossible to move
>> the lock below. The code still has this here:
>>
>>         if (cmd->transport_state & CMD_T_LUN_STOP) {
>>                 pr_debug("%s:%d CMD_T_LUN_STOP for ITT: 0x%08x\n",
>>                         __func__, __LINE__, cmd->se_tfo->get_task_tag(cmd));
>>
>>                 cmd->transport_state &= ~CMD_T_ACTIVE;
>>                 if (remove_from_lists)
>>                         target_remove_from_state_list(cmd);
>>                 spin_unlock_irqrestore(&cmd->t_state_lock, flags);
>>
>>                 complete(&cmd->transport_lun_stop_comp);
>>                 return 1;
>>         }
>>
>> And it seems transport_state needs the lock, right?
> 
> This would end up being dropped with a proper se_lun->lun_ref backport
> in place..
> 
> So I'll take another stab at this some point, but me thinks it's going
> to end up requiring se_lun->lun_ref support in v3.12 + earlier code to
> work.
> 
> On a side note, the bugs this series addresses aren't being actively
> triggered in v3.12 code, as the COMPARE_AND_WRITE emulation causing the
> aggressive multi-port TMRs to be generated by ESX to trigger this bug
> weren't introduced until v3.14+.

Great, thanks, so I will drop all of them for now from 3.12.

thanks,
-- 
js
suse labs

  reply	other threads:[~2016-03-14 11:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06  2:55 [PATCH-v3.14.y 0/8] target: stable backports Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 1/8] target: Fix Task Aborted Status (TAS) handling Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 2/8] target: Add TFO->abort_task for aborted task resources release Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 3/8] target: Fix LUN_RESET active TMR descriptor handling Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 4/8] target: Fix LUN_RESET active I/O handling for ACK_KREF Nicholas A. Bellinger
2016-03-08 15:08   ` Jiri Slaby
2016-03-10  5:59     ` Nicholas A. Bellinger
2016-03-14 11:59       ` Jiri Slaby [this message]
2016-03-06  2:55 ` [PATCH-v3.14.y 5/8] target: Fix TAS handling for multi-session se_node_acls Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 6/8] target: Fix remote-port TMR ABORT + se_cmd fabric stop Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 7/8] target: Fix race with SCF_SEND_DELAYED_TAS handling Nicholas A. Bellinger
2016-03-06  2:55 ` [PATCH-v3.14.y 8/8] target: Fix WRITE_SAME/DISCARD conversion to linux 512b sectors Nicholas A. Bellinger
2016-03-07 23:39 ` [PATCH-v3.14.y 0/8] target: stable backports Greg-KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56E6A7AE.2010400@suse.cz \
    --to=jslaby@suse.cz \
    --cc=agrover@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=himanshu.madhani@qlogic.com \
    --cc=mchristi@redhat.com \
    --cc=nab@linux-iscsi.org \
    --cc=sagig@mellanox.com \
    --cc=stable@vger.kernel.org \
    --cc=target-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.