From 47c8cb8c78fbace1e5edb2107fc1c4dcbe7058be Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 27 Aug 2020 11:02:30 +0200 Subject: [KERNEL] convert to blk-mq and ktime This converts the dnbd3 kernel module driver to use the blk-mq infrastructure, which allows the dnbd3 kernel module driver to be compatible with Linux kernels in version 5.x or later. The conversion of the implementation uses one hardware queue to preserve the existing send/receive and load-balancing logic, but can be scaled up in the future. In addition to that, time measurements in the implementation are converted to ktime based accessors to replace the use of deprecated time interfaces. --- src/kernel/blk.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/kernel/blk.h') diff --git a/src/kernel/blk.h b/src/kernel/blk.h index 5091d19..0afce2e 100644 --- a/src/kernel/blk.h +++ b/src/kernel/blk.h @@ -27,12 +27,6 @@ #define REQ_TYPE_SPECIAL REQ_TYPE_DRV_PRIV #endif -extern struct block_device_operations dnbd3_blk_ops; - -int dnbd3_blk_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg); - -void dnbd3_blk_request(struct request_queue *q); - int dnbd3_blk_add_device(dnbd3_device_t *dev, int minor); int dnbd3_blk_del_device(dnbd3_device_t *dev); -- cgit v1.2.3-55-g7522