]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/scsi_ioctl.c
blk-mq: silence false positive warnings in hctx_unlock()
[mirror_ubuntu-bionic-kernel.git] / block / scsi_ioctl.c
index edcfff974527796a9432b0c262f3961a70e4c2d7..9f19e4056f82acc180bbc351e7fa5da7bf89ed9a 100644 (file)
@@ -29,6 +29,9 @@
 #include <linux/times.h>
 #include <linux/uio.h>
 #include <linux/uaccess.h>
+#include <linux/fd.h>
+#include <linux/raid/md_u.h>
+#include <linux/mtio.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_ioctl.h>
@@ -706,8 +709,17 @@ int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd)
        case SG_GET_RESERVED_SIZE:
        case SG_SET_RESERVED_SIZE:
        case SG_EMULATED_HOST:
+       case BLKFLSBUF:
+       case BLKROSET:
                return 0;
        case CDROM_GET_CAPABILITY:
+       case CDROM_DRIVE_STATUS:
+       case FDGETPRM:
+       case RAID_VERSION:
+       case MTIOCGET:
+#ifdef CONFIG_COMPAT
+       case 0x801c6d02:        /* MTIOCGET32 */
+#endif
                /* Keep this until we remove the printk below.  udev sends it
                 * and we do not want to spam dmesg about it.   CD-ROMs do
                 * not have partitions, so we get here only for disks.