On Thu, 2012-02-02 at 16:00 +0100, Denny Schierz wrote:
> hi,
> 
> uname -a
> 
> 2.6.32 #3 SMP Wed Feb 1 14:41:07 CET 2012 sparc64 GNU/Linux
> 
> with self compiled kernel, but with Debian sources:
> 
>   linux-source-2.6.32                       2.6.32-41 
> 
> -----------------
> [   95.380528] mdadm: sending ioctl 20001261 to a partition!
> [   95.451590] mdadm: sending ioctl 20001261 to a partition!
> [   95.527711] mdadm: sending ioctl 20001261 to a partition!
> [   95.598789] mdadm: sending ioctl 20001261 to a partition!
> [   95.691778] mdadm: sending ioctl 20001261 to a partition!
> [   95.772963] mdadm: sending ioctl 20001261 to a partition!
> ------------------
[...]

Does the attached patch fix this?  This change should be in the longterm
update 2.6.32.56 and we can put it into a stable update pretty soon if
necessary.

Ben.

-- 
Ben Hutchings
Lowery's Law:
             If it jams, force it. If it breaks, it needed replacing anyway.
diff -u b/drivers/scsi/sd.c b/drivers/scsi/sd.c
--- b/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1004,7 +1004,7 @@
 
 	ret = scsi_verify_blk_ioctl(bdev, cmd);
 	if (ret < 0)
-		return ret;
+		return -ENOIOCTLCMD;
 
 	/*
 	 * If we are in the middle of error recovery, don't let anyone

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to