From dfaa74b1af9b8728b71053c8dfd6dcd1092f26a4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 11 Aug 2020 10:44:07 +0000 Subject: [PATCH] --- ConcurrentLinuxSr.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ConcurrentLinuxSr.md b/ConcurrentLinuxSr.md index f6d111b..32f2193 100644 --- a/ConcurrentLinuxSr.md +++ b/ConcurrentLinuxSr.md @@ -94,6 +94,10 @@ function `sr_block_ioctl()` in case of SG_IO: static int sr_block_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg) { +... +#include /* For number value of ioctl cmd SG_IO */ +... + ... if (cmd != SG_IO) mutex_lock(&sr_mutex);