public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] target : replace netlink
@ 2006-07-29  1:01 FUJITA Tomonori
  2006-07-29  2:34 ` Douglas Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: FUJITA Tomonori @ 2006-07-29  1:01 UTC (permalink / raw)
  To: linux-scsi, James.Bottomley

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.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-29 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-29  1:01 [PATCH 0/2] target : replace netlink FUJITA Tomonori
2006-07-29  2:34 ` Douglas Gilbert
2006-07-29 17:36   ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox