pktcdvd: Check queue type before attaching to a queue
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 31 May 2017 21:43:48 +0000 (14:43 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 1 Jun 2017 19:10:43 +0000 (13:10 -0600)
commitec2be6a98e50d3eb9f35f70aa51c5d2c23737c55
tree29d1fe09f4b4135a36e7872f4c1c461d72f7dcba
parentd9f972644606ecc2581390b43cb5a980b54c04bf
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>
drivers/block/pktcdvd.c