Re: [PATCH RFC 1/3] SCSI Userspace Target: scsi-ml changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FUJITA Tomonori wrote:
From: James Bottomley <James.Bottomley@xxxxxxxxxxxx>
Subject: Re: [PATCH RFC 1/3] SCSI Userspace Target: scsi-ml changes
Date: Sun, 05 Feb 2006 12:30:28 -0600


OK ... I think this looks good enough to fix up in tree.  I just have
one minor quibble, so could you fix that and I'll put it in.

On Tue, 2006-01-24 at 20:58 -0600, Mike Christie wrote:

@@ -31,6 +32,7 @@ struct scsi_pointer {
struct scsi_cmnd {
       int     sc_magic;

+       struct Scsi_Host *shost;
       struct scsi_device *device;

This is an unnecessary addition; you can get this from device->host.


Thanks a lot. I've just fixed this.


We actually need ths shost pointer becuase we do not represent the LU in the kernel. So we go from:

scsi_host -> host's uspace request_queue (used to pass commands and messages from the target LLD interrup handler to our netlink code/userspace -> in userspace we represent the target, device/LU, and host.

Tomo did you add a virtual scsi_device somewhere?
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux