qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] raw-posix: improve detection of scsi-generic de


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] raw-posix: improve detection of scsi-generic devices
Date: Tue, 07 Sep 2010 11:47:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100720 Fedora/3.0.6-1.fc12 Thunderbird/3.0.6

Am 07.09.2010 04:04, schrieb Christoph Hellwig:
> On Mon, Sep 06, 2010 at 05:39:00PM +0200, Alexander Graf wrote:
>>
>> On 06.09.2010, at 17:06, Bernhard Kohl wrote:
>>
>>> From: Bernhard Kohl <address@hidden>
>>>
>>> Allow symbolic links which point to /dev/sgX devices.
>>
>> Couldn't you send an SG_IO test ioctl over and see if it works? I really 
>> dislike the whole file name magic matching.
> 
> You could, but the result would not be what you expect, given that every
> /dev/sd* device and more in Linux support it.
> 
> What we really need is to stop shoe-horning scsi pass through support
> into the block layer.  Once we finally get our generic thread offload
> facilily there is no need for it anymore at all, scsi-generic can
> simplify offload the SG_IO ioctl and be done with it.  I even have an
> old prototype for this, just waiting for the generic thread offload
> to get merged before resurrecting it.

Let's apply this patch for the time being then, and remove the code
altogether as soon as possible.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]