summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorHannes Reinecke2018-06-07 10:29:44 +0200
committerJens Axboe2018-06-07 14:56:01 +0200
commitc04fa44b76b8d9d4f6b577030aa0cbb20359c428 (patch)
tree7509f7ec032c0d913651a309f03542f5d900ef12 /samples
parentblock: pass failfast and driver-specific flags to flush requests (diff)
downloadkernel-qcow2-linux-c04fa44b76b8d9d4f6b577030aa0cbb20359c428.tar.gz
kernel-qcow2-linux-c04fa44b76b8d9d4f6b577030aa0cbb20359c428.tar.xz
kernel-qcow2-linux-c04fa44b76b8d9d4f6b577030aa0cbb20359c428.zip
block: always set partition number to '0' in blk_partition_remap()
blk_partition_remap() will only clear bi_partno if an actual remapping has happened. But flush request et al don't have an actual size, so the remapping doesn't happen and bi_partno is never cleared. So for stacked devices blk_partition_remap() will be called on each level. If (as is the case for native nvme multipathing) one of the lower-level devices do _not_support partitioning a spurious I/O error is generated. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions