summaryrefslogtreecommitdiff
path: root/drivers/nvdimm/pfn_devs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-07-24 19:26:56 +0300
committerJens Axboe <axboe@kernel.dk>2019-07-26 21:50:57 +0300
commitc6c84f78e2f77be37b9a150ed33be992198741f0 (patch)
treeb17280da070959c9478ace36f0f184861ff969e1 /drivers/nvdimm/pfn_devs.c
parent9c0b2596f2ac30967af0b8bb9f038b65926a6f00 (diff)
downloadlinux-c6c84f78e2f77be37b9a150ed33be992198741f0.tar.xz
block: fix max segment size handling in blk_queue_virt_boundary
We should only set the max segment size to unlimited if we actually have a virt boundary. Otherwise we accidentally clear that limit when called from the SCSI midlayer, which always calls blk_queue_virt_boundary, even if that mask is 0. Fixes: 7ad388d8e4c7 ("scsi: core: add a host / host template field for the virt boundary") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvdimm/pfn_devs.c')
0 files changed, 0 insertions, 0 deletions