All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <mchristi@redhat.com>
To: target-devel@vger.kernel.org
Subject: Re: [PATCH 14/14] target: Fix handling of removed LUNs
Date: Thu, 21 Jun 2018 20:38:18 +0000	[thread overview]
Message-ID: <5B2C0CBA.1000004@redhat.com> (raw)
In-Reply-To: <20180301222632.31507-15-bart.vanassche@wdc.com>

On 06/21/2018 03:25 PM, Bart Van Assche wrote:
>>>  		 * clearing it.
>>> > >  		 */
>>> > >  		if (dev->dev_attrib.emulate_ua_intlck_ctrl != 0) {
>>> > > +			*key = UNIT_ATTENTION;
>> > 
>> > 
>> > Is the key already set to UNIT_ATTENTION here?
> Good catch - that assignment is superfluous. But I would like to keep it
> because I think it makes the core_scsi3_ua_for_check_condition() easy to
> read. However, that assignment makes the following entry in sense_info_table[]
> superfluous:

If you keep it above then I think it would be good to add it below in
the emulate_ua_intlck_ctrl=0 case:

                if (head) {
                        *asc = ua->ua_asc;
                        *ascq = ua->ua_ascq;
                        head = 0;
                }

so it is consistent.

  parent reply	other threads:[~2018-06-21 20:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-01 22:26 [PATCH 14/14] target: Fix handling of removed LUNs Bart Van Assche
2018-06-21  1:32 ` Mike Christie
2018-06-21 17:53 ` Bart Van Assche
2018-06-21 19:10 ` Mike Christie
2018-06-21 20:25 ` Bart Van Assche
2018-06-21 20:32 ` Mike Christie
2018-06-21 20:38 ` Mike Christie [this message]
2018-06-21 20:53 ` Bart Van Assche
2018-06-21 20:58 ` Bart Van Assche
2018-06-22  3:45 ` Mike Christie
2018-06-22 15:38 ` Bart Van Assche

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=5B2C0CBA.1000004@redhat.com \
    --to=mchristi@redhat.com \
    --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.