fnic: reject device resets without assigned tags for the blk-mq case
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 16:52:01 +0000 (18:52 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 01:34:53 +0000 (19:34 -0600)
commitc4e5fe459f1163e045a8d5e47e90513740d24bae
tree838755d755c2662227534384a270eded6c6580f2
parentb67d8bea6c6ce8627f2c52bdbd67db5382d0eccb
fnic: reject device resets without assigned tags for the blk-mq case

Current the midlayer fakes up a struct request for the explicit reset
ioctls, and those don't have a tag allocated to them.  The fnic driver pokes
into midlayer structures to paper over this design issue, but that won't
work for the blk-mq case.

Either someone who can actually test the hardware will have to come up with
a similar hack for the blk-mq case, or we'll have to bite the bullet and fix
the way the EH ioctls work for real, but until that happens we fail these
explicit requests here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Hiral Patel <hiralpat@cisco.com>
Cc: Suma Ramars <sramars@cisco.com>
Cc: Brian Uchino <buchino@cisco.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/fnic/fnic_scsi.c