[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4FD794F2.2080000@redhat.com>
Date: Tue, 12 Jun 2012 21:13:54 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
CC: linux-kernel@...r.kernel.org, axboe@...nel.dk,
linux-scsi@...r.kernel.org, jbottomley@...allels.com,
Al Viro <viro@...IV.linux.org.uk>
Subject: Re: Can we pass a file handle down to the block ioctls to implement
per file filters on scsi SG_IO ?
Il 12/06/2012 20:52, Alan Cox ha scritto:
> > Sure; however, doing so requires access to some member of "struct file"
> > from SG_IO. Thus, ioctl would need to take a "struct file" rather than
> > just an fmode_t.
> >
> > The switch to fmode_t was done in 2007 by Al Viro. I would like to
> > understand the reasons for the switch; it seems to me that it was part
> > of the big kernel lock removal. If it's acceptable to undo it, I would
> > very much would like to add generic BPF filtering to SG_IO
>
> That would solve all sorts of problems in this area, so lets ping the man
> himself - Al ?
(Even if he says no, we could probably use cgroups instead).
Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists