summaryrefslogtreecommitdiffstats
path: root/src/kernel/blk.h
diff options
context:
space:
mode:
authorManuel Bentele2020-08-27 11:02:30 +0200
committerManuel Bentele2020-08-27 11:02:30 +0200
commit47c8cb8c78fbace1e5edb2107fc1c4dcbe7058be (patch)
tree55ce28fa6fc8c36b09ac62cec87587c1d987966e /src/kernel/blk.h
parentcmake: Fixed missing include paths to build the Linux kernel module (diff)
downloaddnbd3-47c8cb8c78fbace1e5edb2107fc1c4dcbe7058be.tar.gz
dnbd3-47c8cb8c78fbace1e5edb2107fc1c4dcbe7058be.tar.xz
dnbd3-47c8cb8c78fbace1e5edb2107fc1c4dcbe7058be.zip
[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.
Diffstat (limited to 'src/kernel/blk.h')
-rw-r--r--src/kernel/blk.h6
1 files changed, 0 insertions, 6 deletions
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);