multipath.c (2c55d703391acf7e9101da596d0c15ee03b318a3) | multipath.c (613b14884b8595e20b9fac4126bf627313827fbe) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2017-2018 Christoph Hellwig. 4 */ 5 6#include <linux/backing-dev.h> 7#include <linux/moduleparam.h> 8#include <linux/vmalloc.h> --- 362 unchanged lines hidden (view full) --- 371 int srcu_idx; 372 373 /* 374 * The namespace might be going away and the bio might be moved to a 375 * different queue via blk_steal_bios(), so we need to use the bio_split 376 * pool from the original queue to allocate the bvecs from. 377 */ 378 bio = bio_split_to_limits(bio); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2017-2018 Christoph Hellwig. 4 */ 5 6#include <linux/backing-dev.h> 7#include <linux/moduleparam.h> 8#include <linux/vmalloc.h> --- 362 unchanged lines hidden (view full) --- 371 int srcu_idx; 372 373 /* 374 * The namespace might be going away and the bio might be moved to a 375 * different queue via blk_steal_bios(), so we need to use the bio_split 376 * pool from the original queue to allocate the bvecs from. 377 */ 378 bio = bio_split_to_limits(bio); |
379 if (!bio) 380 return; |
|
379 380 srcu_idx = srcu_read_lock(&head->srcu); 381 ns = nvme_find_path(head); 382 if (likely(ns)) { 383 bio_set_dev(bio, ns->disk->part0); 384 bio->bi_opf |= REQ_NVME_MPATH; 385 trace_block_bio_remap(bio, disk_devt(ns->head->disk), 386 bio->bi_iter.bi_sector); --- 569 unchanged lines hidden --- | 381 382 srcu_idx = srcu_read_lock(&head->srcu); 383 ns = nvme_find_path(head); 384 if (likely(ns)) { 385 bio_set_dev(bio, ns->disk->part0); 386 bio->bi_opf |= REQ_NVME_MPATH; 387 trace_block_bio_remap(bio, disk_devt(ns->head->disk), 388 bio->bi_iter.bi_sector); --- 569 unchanged lines hidden --- |