[RHEL8,COMMIT] cbt: Allow BLKCBTMISC for userspace

Submitted by Konstantin Khorenko on Dec. 10, 2019, 3:44 p.m.

Details

Message ID 201912101544.xBAFiO9p024165@finist_co8.work.ct
State New
Series "cbt: Allow BLKCBTMISC for userspace"
Headers show

Commit Message

Konstantin Khorenko Dec. 10, 2019, 3:44 p.m.
The commit is pushed to "branch-rh8-4.18.0-80.1.2.vz8.2.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-80.1.2.vz8.2.6
------>
commit 695bad759bae4e1c29c41fc528cc063254f6592e
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Tue Dec 10 18:44:24 2019 +0300

    cbt: Allow BLKCBTMISC for userspace
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 block/ioctl.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/block/ioctl.c b/block/ioctl.c
index 55964e3df373..d7f27a1a38c3 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -606,6 +606,7 @@  int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
 	case BLKCBTGET:
 	case BLKCBTSET:
 	case BLKCBTCLR:
+	case BLKCBTMISC:
 		return blk_cbt_ioctl(bdev, cmd, (char __user *)arg);
 	default:
 		return __blkdev_driver_ioctl(bdev, mode, cmd, arg);