diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-06-01 00:43:48 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-01 22:10:43 +0300 |
commit | ec2be6a98e50d3eb9f35f70aa51c5d2c23737c55 (patch) | |
tree | 29d1fe09f4b4135a36e7872f4c1c461d72f7dcba /drivers/cdrom | |
parent | d9f972644606ecc2581390b43cb5a980b54c04bf (diff) | |
download | linux-ec2be6a98e50d3eb9f35f70aa51c5d2c23737c55.tar.xz |
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