RE: [PATCH v7] st implement tape statistics

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

 



I don't see this as something that is easily done. It would require new entries in the statistics (and including increasing the arrays to include an other count and adding a byte count which has to be a u64). It would seem that if you were taking this approach you would really need to almost rewrite the tape driver to achieve close integration. If someone wants to rewrite the driver I'd be happy to help on the statistics side.

I don't feel that I have the experience to complete such a project by myself and there are huge risks associated with significant changes to the block layer in doing this. In the st driver the changes are isolated and we have a driver that only allows a single outstanding read or write or ioctl to a tape drive so it doesn't need the same level of complexity that the block layer provides.

-----Original Message-----
From: Christoph Hellwig [mailto:hch@xxxxxxxxxxxxx] 
Sent: Wednesday, May 06, 2015 2:31 PM
To: Seymour, Shane M
Cc: Christoph Hellwig; linux-scsi@xxxxxxxxxxxxxxx; Laurence Oberman (loberman@xxxxxxxxxx); Kai.Makisara@xxxxxxxxxxx; James E.J. Bottomley (JBottomley@xxxxxxxxxxxxx); Elliott, Robert (Server Storage)
Subject: Re: [PATCH v7] st implement tape statistics

On Wed, May 06, 2015 at 01:11:26AM +0000, Seymour, Shane M wrote:
> "The tape driver does not have access to the block device i/o statistics because the tapes are not block devices but character devices. They use the Linux block subsystem enough to do i/o but this does not include access to the statistics counters.
> 
> ... One alternative is, of course, to tie the st driver more into the Linux block device system. I have looked into this several times but have never seen how to do this in a simple enough way."

I know the architecture pretty well, but the question is if we can export some of that functionality so that it works for character devices nodes that driver a request_queue.  Note that it was formualted as a questions as thast change seems obvious but might not be feasible for one reason or another.  If you looked at it and consider it not doable or at least not worthwhile for good reasons document those in the patch description.
--
To unsubscribe from this list: 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