[Devel] [PATCH RH9] cbt: Fix BLKCBTMISC case

Kirill Tkhai ktkhai at virtuozzo.com
Tue Dec 21 15:42:18 MSK 2021


Add BLKCBTMISC case allowing to call blk_cbt_ioctl()

https://jira.sw.ru/browse/PSBM-137054
Fixes: commit 0b21e2b1509e "cbt: introduce changed block tracking"
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 block/ioctl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/block/ioctl.c b/block/ioctl.c
index ea03286cc77a..a6c0b481df00 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -529,6 +529,7 @@ static int blkdev_common_ioctl(struct block_device *bdev, fmode_t mode,
 	case BLKCBTGET:
 	case BLKCBTSET:
 	case BLKCBTCLR:
+	case BLKCBTMISC:
 		return blk_cbt_ioctl(bdev, cmd, (char __user *)arg);
 	default:
 		return -ENOIOCTLCMD;




More information about the Devel mailing list