parent
dfaa74b1af
commit
ae2b697692
@ -91,12 +91,12 @@ simple. In the source code of kernel 4.19 i edited `drivers/scsi/sr.c`,
|
||||
included `<scsi/sg.h>` 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 <scsi/sg.h> /* 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)
|
||||
|
Loading…
Reference in New Issue
Block a user