public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Abhishek Rai <abba@cs.sunysb.edu>
To: Arjan van de Ven <arjanv@redhat.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Help - how to identify the callers in a SCSI lower-leveldriver
Date: Wed, 7 Apr 2004 21:09:15 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.53.0404072106530.12925@compserv1> (raw)
In-Reply-To: <20040407205701.GA27311@devserv.devel.redhat.com>


> > The shim (a pseudo SCSI lower-level driver) we are working on sits in
> > between Linux SCSI mid-level driver and our existing kernel driver which
> > interfaces with a FC driver which interacts with the FC HBA.
>
> wow that sounds like a great way to kill performance, that many extra layers
>
> >
> > To track SCSI initiators' tasks, it would be great if our existing kernel
> > driver knows which application makes the (SCSI passthrough ioctl) call to
> > /dev/sda.
>
> well... it's a fundamentally hard problem. For example the application that
> submitted the IO may no longer exist on disk by the time you get to see the
> IO, or the process may already have exited. It sounds like a fundamentally
> fragile/broken concept to use this information for *anything*, it's still
> not clear to me what you'd use it for (other than doing a gross hack by
> faking IO priorities based on application name but that's sooo not the right
> solution to that problem)
>

If it is just a feature you want in your development driver, you can do it
at the file system level, e.g., modify an existing file system, or better
still, have a thin stackable file system layer that does that. Then you
can mount the file system on your /dev/sda so that the stackable file
system sits in between the underlying file system and the VFS.

Abhishek

      reply	other threads:[~2004-04-08  1:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-07 20:42 Help - how to identify the callers in a SCSI lower-leveldriver Lee Xing
2004-04-07 20:57 ` Arjan van de Ven
2004-04-08  1:09   ` Abhishek Rai [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=Pine.GSO.4.53.0404072106530.12925@compserv1 \
    --to=abba@cs.sunysb.edu \
    --cc=arjanv@redhat.com \
    --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