From: Douglas Gilbert <dougg@torque.net>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: linux-scsi@vger.kernel.org, James.Bottomley@SteelEye.com
Subject: Re: [PATCH 0/2] target : replace netlink
Date: Fri, 28 Jul 2006 22:34:28 -0400 [thread overview]
Message-ID: <44CAC934.9030409@torque.net> (raw)
In-Reply-To: <20060730030304U.fujita.tomonori@lab.ntt.co.jp>
FUJITA Tomonori wrote:
> The target code wrongly uses netlink to pass user-space buffer
> pointers. The kernel module sends SCSI commands to user space and
> receives responses from user-space daemon. So we need bi-directional,
> high-speed interface between user and kernel space. Currently, there
> isn't such interface in mainline. For example, mmapped packet and
> relayfs move data only from kernel to user space.
Good-bye netlink, another ioctl (or char driver)
replacement bites the dust. It looks like your
netlink replacement char driver has a lot in common
with the sg driver ...
I hope to present soon a version 4 of the SCSI generic
interface structure that will address some of
these concerns. [Basically an expanded version of
'struct sg_io_hdr' that includes bidirectional data
transfers and multi-protocol support.]
Doug Gilbert
> This patchset replaces netlink shared memory between kernel and user
> spaces. The user-space daemon and the kernel module create shared
> memory via mmap and use it like ring buffer (like mmapped packet
> does). The poll system call is used for notification from kernel to
> user space and the write system call is used for notification from
> user to kernel space. We use a simple approach so that we easily
> replace it if we find something better later on (or we implement a
> generic interface if necessary).
>
> This patchset is against the scsi-target git tree and on the top of
> the following patch:
>
> http://marc.theaimsgroup.com/?l=linux-scsi&m=114960851929878&w=2
next prev parent reply other threads:[~2006-07-29 2:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-29 1:01 [PATCH 0/2] target : replace netlink FUJITA Tomonori
2006-07-29 2:34 ` Douglas Gilbert [this message]
2006-07-29 17:36 ` 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=44CAC934.9030409@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@SteelEye.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox