From ae2b6976928d9fefe07b888f72f8a1e7174bbdad Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 11 Aug 2020 10:45:00 +0000 Subject: [PATCH] --- ConcurrentLinuxSr.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ConcurrentLinuxSr.md b/ConcurrentLinuxSr.md index 32f2193..4241a6c 100644 --- a/ConcurrentLinuxSr.md +++ b/ConcurrentLinuxSr.md @@ -91,12 +91,12 @@ simple. In the source code of kernel 4.19 i edited `drivers/scsi/sr.c`, included `` which defines SG_IO, and skipped the mutex calls in 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 */ ... +static int sr_block_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, + unsigned long arg) +{ ... if (cmd != SG_IO)