From: Brian King <brking@linux.vnet.ibm.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: nab@linux-iscsi.org, linux-scsi@vger.kernel.org, lxie@us.ibm.com,
rcjenn@us.ibm.com, michaelc@cs.wisc.edu, James.Bottomley@suse.de,
joel.becker@oracle.com
Subject: Re: [PATCH] ibmvscsis: Move to struct ibmvscsis_vdev usage in fabric configfs handlers
Date: Tue, 02 Nov 2010 08:47:24 -0500 [thread overview]
Message-ID: <4CD0166C.5060403@linux.vnet.ibm.com> (raw)
In-Reply-To: <20101102070638M.fujita.tomonori@lab.ntt.co.jp>
On 11/01/2010 05:15 PM, FUJITA Tomonori wrote:
> On Mon, 01 Nov 2010 14:37:42 -0700
> "Nicholas A. Bellinger" <nab@linux-iscsi.org> wrote:
>
>> On Tue, 2010-11-02 at 06:05 +0900, FUJITA Tomonori wrote:
>>> On Sat, 30 Oct 2010 16:13:54 -0700
>>> "Nicholas A. Bellinger" <nab@linux-iscsi.org> wrote:
>>>
>>>> From: Nicholas Bellinger <nab@linux-iscsi.org>
>>>>
>>>> This patch takes tomo-san original commit 94fdb0196151 and changes a handful
>>>> of important items wrt to the fabric configfs logic.
>>>>
>>>> Firstly, this patch introduces struct ibmvscsis_vdev and converts the
>>>> VIO ibmvscsis_probe() and ibmvscsi_remove() callers to allocate/free
>>>> struct ibmvscsis_vdev instead of the original usage of struct ibmvscsis_tpg
>>>> which is intended to be allocated/freed respectively in ibmvscsis_make_tpg()
>>>> and ibmvscsis_drop_tpg() fabric configfs handlers.
>>>
>>> What happens if an initiator sends a crq command before an user
>>> creates a tpg? Or what happens if an initiator sends a crq command
>>> after removing a tpg?
>>>
>>
>> Hmmm, good point. So this would require ibmvscsis_queuecommand() to
>> check internal some ibmvscsi_tpg state to determine availability, and
>> reject incoming I/O otherwise. The other operation would be to just
>> move crq queue creation/release for individual ibmvscsi_vdev into
>> ibmvscsis_make_tpg() and ibmvscsis_drop_tpg().
>
> You don't need to create/release rcq. I think that enable/disable vio
> interrupts is enough.
Maybe I'm not following the conversation here, but if you just disable vio
interrupts, then any commands sent by a client LPAR would be seen to hang
from the client's perspective. If ibmvscsis doesn't have the CRQ registered,
then firmware will fail client commands with a response indicating the server
is not ready.
Thanks,
Brian
--
Brian King
Linux on Power Virtualization
IBM Linux Technology Center
next prev parent reply other threads:[~2010-11-02 13:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-30 23:13 [PATCH] ibmvscsis: Move to struct ibmvscsis_vdev usage in fabric configfs handlers Nicholas A. Bellinger
2010-11-01 21:05 ` FUJITA Tomonori
2010-11-01 21:37 ` Nicholas A. Bellinger
2010-11-01 22:15 ` FUJITA Tomonori
2010-11-01 22:25 ` Nicholas A. Bellinger
2010-11-02 8:36 ` FUJITA Tomonori
2010-11-02 13:41 ` Brian King
2010-11-02 13:47 ` Brian King [this message]
2010-11-02 14:21 ` FUJITA Tomonori
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=4CD0166C.5060403@linux.vnet.ibm.com \
--to=brking@linux.vnet.ibm.com \
--cc=James.Bottomley@suse.de \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=joel.becker@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=lxie@us.ibm.com \
--cc=michaelc@cs.wisc.edu \
--cc=nab@linux-iscsi.org \
--cc=rcjenn@us.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox