]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_dh_emc: switch to scsi_execute_req_flags()
authorHannes Reinecke <hare@suse.de>
Thu, 3 Nov 2016 13:20:22 +0000 (14:20 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commitccc1141ab275e398c1778752725d7e5b4b4e8513
tree0381c531ebc9355e57261142b66a4563763cf61e
parentc720ca952351e4bc668f44036e5568fc454b5a7c
scsi_dh_emc: switch to scsi_execute_req_flags()

Switch to scsi_execute_req_flags() and scsi_get_vpd_page() instead of
open-coding it.  Using scsi_execute_req_flags() will set REQ_QUIET and
REQ_PREEMPT, but this is okay as we're evaluating the errors anyway and
should be able to send the command even if the device is quiesced.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/device_handler/scsi_dh_emc.c