From: Kevin Wolf <kwolf@redhat.com>
To: ronnie sahlberg <ronniesahlberg@gmail.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
Hannes Reinecke <hare@suse.de>, Christoph Hellwig <hch@lst.de>,
"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] iscsi: add iSCSI block device support
Date: Thu, 25 Nov 2010 10:30:50 +0100 [thread overview]
Message-ID: <4CEE2CCA.6000002@redhat.com> (raw)
In-Reply-To: <AANLkTimeGteG=6V=qBNYRx6U98f7Jmgk2xZXcKxdz9O7@mail.gmail.com>
Am 25.11.2010 06:22, schrieb ronnie sahlberg:
> Nicholas,
> below.
>
> On Thu, Nov 25, 2010 at 3:32 PM, Nicholas A. Bellinger
> <nab@linux-iscsi.org> wrote:
>
>> But existing code aside, I think having a small userspace iSCSI
>> initiator built into QEMU that 'just works' across all host environments
>> would be a pretty useful thing, even if the scalibility / scope is
>> limited compared to existing kernel host level iSCSI initiator stacks,
>> et al. I have not yet had a chance to look at Ronnie's code, but would
>> be interested to understand how the threading model currently functions.
>>
>> Ronnie, I would recommending following Kevin's earlier advice and split
>> your work into a reviewable series of commits (preferrably generated by
>> git-format-patch) and repost the series for feedback to qemu-devel. You
>> can read that as coded language for 'you will want to learn git to
>> submit your patch', but it really does work. ;)
>
> Thanks,
>
> I will work on the suggestions over the weekend, so Ill resend either
> this weekend or next weekend.
> So don't spend/waste time reviewing now.
>
> As for the threading model.
> Currently it is not threads safe, so all calls into the library would
> have to be protected through a mutex if used from concurrent threads.
> I couldn't see any such mutexes when looking at sheepdog as an
> example, so do the block drivers need to be threads-safe in qemu?
No, block drivers are not threaded currently. You don't have to take
care of that yourself, everything is already protected by a mutex.
> One goal of the library is to be 100% async and to never make any
> blocking syscalls.
> So the library will never block and should be able to reach good
> performance, even with one single thread.
That would match what other block drivers do.
Kevin
prev parent reply other threads:[~2010-11-25 9:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-21 22:17 [Qemu-devel] [PATCH 1/1] iscsi: add iSCSI block device support ronnie sahlberg
2010-11-21 23:13 ` FUJITA Tomonori
2010-11-21 23:39 ` ronnie sahlberg
2010-11-22 9:27 ` [Qemu-devel] " Kevin Wolf
2010-11-24 17:04 ` [Qemu-devel] " Christoph Hellwig
2010-11-24 19:14 ` Stefan Hajnoczi
2010-11-25 4:32 ` Nicholas A. Bellinger
2010-11-25 5:22 ` ronnie sahlberg
2010-11-25 9:30 ` Kevin Wolf [this message]
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=4CEE2CCA.6000002@redhat.com \
--to=kwolf@redhat.com \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=nab@linux-iscsi.org \
--cc=qemu-devel@nongnu.org \
--cc=ronniesahlberg@gmail.com \
--cc=stefanha@gmail.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 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.