diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-05-31 14:43:48 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-01 13:10:43 -0600 |
commit | ec2be6a98e50d3eb9f35f70aa51c5d2c23737c55 (patch) | |
tree | 29d1fe09f4b4135a36e7872f4c1c461d72f7dcba /drivers/cdrom | |
parent | d9f972644606ecc2581390b43cb5a980b54c04bf (diff) | |
download | linux-stable-ec2be6a98e50d3eb9f35f70aa51c5d2c23737c55.tar.gz linux-stable-ec2be6a98e50d3eb9f35f70aa51c5d2c23737c55.tar.bz2 linux-stable-ec2be6a98e50d3eb9f35f70aa51c5d2c23737c55.zip |
pktcdvd: Check queue type before attaching to a queue
Since the pktcdvd driver only supports request queues for which
struct scsi_request is the first member of their private request
data, refuse to register block layer queues for which struct
scsi_request is not the first member of the private data.
References: commit 82ed4db499b8 ("block: split scsi_request out of struct request")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions