nvme-fc: use blk_rq_nr_phys_segments
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jan 2017 15:55:57 +0000 (16:55 +0100)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 26 Jan 2017 15:49:14 +0000 (17:49 +0200)
commit19e420bb4076ace670addc55300e3b8c4a02dfc6
treeba40aad7ab4fb28c0eafd0ee84959589f444f58d
parent748ff8408f8e208f279ba221e5c12612fbb4dddb
nvme-fc: use blk_rq_nr_phys_segments

Without this deallocate won't work properly due to the mismatch
of the bio/request size and the actual payload size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/fc.c