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)