From: Mike Christie <mchristi@redhat.com>
To: Lee Duncan <lduncan@suse.com>, linux-scsi@vger.kernel.org
Cc: Chris Leech <cleech@redhat.com>, hare@suse.de
Subject: Re: [PATCH] libiscsi: ensure session spin lock usage consistent
Date: Wed, 7 Feb 2018 17:42:15 -0600 [thread overview]
Message-ID: <5A7B8ED7.2050901@redhat.com> (raw)
In-Reply-To: <5A7B8099.4000506@redhat.com>
On 02/07/2018 04:41 PM, Mike Christie wrote:
>
>> static int iscsi_exec_task_mgmt_fn(struct iscsi_conn *conn,
>> @@ -1908,7 +1908,7 @@ static enum blk_eh_timer_return iscsi_eh_cmd_timed_out(struct scsi_cmnd *sc)
>>
>> ISCSI_DBG_EH(session, "scsi cmd %p timedout\n", sc);
>>
>> - spin_lock(&session->lock);
>> + spin_lock_bh(&session->lock);
>> task = (struct iscsi_task *)sc->SCp.ptr;
>> if (!task) {
>> /*
>> @@ -2022,7 +2022,7 @@ static enum blk_eh_timer_return iscsi_eh_cmd_timed_out(struct scsi_cmnd *sc)
>> done:
>> if (task)
>> task->last_timeout = jiffies;
>> - spin_unlock(&session->lock);
>> + spin_unlock_bh(&session->lock);
>> ISCSI_DBG_EH(session, "return %s\n", rc == BLK_EH_RESET_TIMER ?
>> "timer reset" : "nh");
>> return rc;
I guess you want this chunk too. It does not now, but someone could add
a blk_abort_request call that ends up calling into the driver.
next prev parent reply other threads:[~2018-02-07 23:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 19:13 [PATCH] libiscsi: ensure session spin lock usage consistent Lee Duncan
2018-02-07 22:41 ` Mike Christie
2018-02-07 23:42 ` Mike Christie [this message]
2018-02-07 22:57 ` Mike Christie
2018-02-08 4:36 ` Chris Leech
2018-02-08 5:17 ` Chris Leech
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=5A7B8ED7.2050901@redhat.com \
--to=mchristi@redhat.com \
--cc=cleech@redhat.com \
--cc=hare@suse.de \
--cc=lduncan@suse.com \
--cc=linux-scsi@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.