* [PATCH] virtio_blk: ioctl return value fix
@ 2009-06-20 19:29 Christoph Hellwig
2009-06-23 7:13 ` Rusty Russell
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-06-20 19:29 UTC (permalink / raw)
To: rusty; +Cc: linux-kernel, kvm
Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
they expect the block layer to handle generic ioctls.
This triggered a BLKROSET failure in xfsqa #200.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6/drivers/block/virtio_blk.c
===================================================================
--- linux-2.6.orig/drivers/block/virtio_blk.c 2009-06-20 21:21:20.252930284 +0200
+++ linux-2.6/drivers/block/virtio_blk.c 2009-06-20 21:22:48.364932365 +0200
@@ -213,7 +213,7 @@ static int virtblk_ioctl(struct block_de
* Only allow the generic SCSI ioctls if the host can support it.
*/
if (!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_SCSI))
- return -ENOIOCTLCMD;
+ return -ENOTTY;
return scsi_cmd_ioctl(disk->queue, disk, mode, cmd, argp);
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio_blk: ioctl return value fix
2009-06-20 19:29 [PATCH] virtio_blk: ioctl return value fix Christoph Hellwig
@ 2009-06-23 7:13 ` Rusty Russell
2009-07-08 18:12 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Rusty Russell @ 2009-06-23 7:13 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel, kvm
On Sun, 21 Jun 2009 04:59:41 am Christoph Hellwig wrote:
> Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
> they expect the block layer to handle generic ioctls.
>
> This triggered a BLKROSET failure in xfsqa #200.
Applied.
Thanks,
Rusty.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio_blk: ioctl return value fix
2009-06-23 7:13 ` Rusty Russell
@ 2009-07-08 18:12 ` Christoph Hellwig
2009-07-08 19:46 ` Avi Kivity
2009-07-09 12:48 ` Rusty Russell
0 siblings, 2 replies; 5+ messages in thread
From: Christoph Hellwig @ 2009-07-08 18:12 UTC (permalink / raw)
To: Rusty Russell; +Cc: Christoph Hellwig, linux-kernel, kvm
On Tue, Jun 23, 2009 at 04:43:10PM +0930, Rusty Russell wrote:
> On Sun, 21 Jun 2009 04:59:41 am Christoph Hellwig wrote:
> > Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
> > they expect the block layer to handle generic ioctls.
> >
> > This triggered a BLKROSET failure in xfsqa #200.
>
> Applied.
Can you send on this fix to Linus? It fixes a regression introduced in
Linux 2.6.30.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio_blk: ioctl return value fix
2009-07-08 18:12 ` Christoph Hellwig
@ 2009-07-08 19:46 ` Avi Kivity
2009-07-09 12:48 ` Rusty Russell
1 sibling, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2009-07-08 19:46 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Rusty Russell, linux-kernel, kvm
On 07/08/2009 09:12 PM, Christoph Hellwig wrote:
> On Tue, Jun 23, 2009 at 04:43:10PM +0930, Rusty Russell wrote:
>
>> On Sun, 21 Jun 2009 04:59:41 am Christoph Hellwig wrote:
>>
>>> Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
>>> they expect the block layer to handle generic ioctls.
>>>
>>> This triggered a BLKROSET failure in xfsqa #200.
>>>
>> Applied.
>>
>
> Can you send on this fix to Linus? It fixes a regression introduced in
> Linux 2.6.30.
>
>
It should set the Cc: stable@kernel.org marker then.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio_blk: ioctl return value fix
2009-07-08 18:12 ` Christoph Hellwig
2009-07-08 19:46 ` Avi Kivity
@ 2009-07-09 12:48 ` Rusty Russell
1 sibling, 0 replies; 5+ messages in thread
From: Rusty Russell @ 2009-07-09 12:48 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel, kvm
On Thu, 9 Jul 2009 03:42:20 am Christoph Hellwig wrote:
> On Tue, Jun 23, 2009 at 04:43:10PM +0930, Rusty Russell wrote:
> > On Sun, 21 Jun 2009 04:59:41 am Christoph Hellwig wrote:
> > > Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
> > > they expect the block layer to handle generic ioctls.
> > >
> > > This triggered a BLKROSET failure in xfsqa #200.
> >
> > Applied.
>
> Can you send on this fix to Linus? It fixes a regression introduced in
> Linux 2.6.30.
Yep, I've been away, but they'll both be pushed soon with other (minor)
lguest/virtio fixes. I'm holding on a final lguest regression which I need to
track down.
Thanks,
Rusty.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-09 12:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-20 19:29 [PATCH] virtio_blk: ioctl return value fix Christoph Hellwig
2009-06-23 7:13 ` Rusty Russell
2009-07-08 18:12 ` Christoph Hellwig
2009-07-08 19:46 ` Avi Kivity
2009-07-09 12:48 ` Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).