dm-rq.c (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) dm-rq.c (9360d077d3197f895f34cb8e6ae1b599278abf9d)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2016 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-core.h"

--- 482 unchanged lines hidden (view full) ---

491 return BLK_STS_RESOURCE;
492
493 if (unlikely(!ti)) {
494 int srcu_idx;
495 struct dm_table *map;
496
497 map = dm_get_live_table(md, &srcu_idx);
498 if (unlikely(!map)) {
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2016 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-core.h"

--- 482 unchanged lines hidden (view full) ---

491 return BLK_STS_RESOURCE;
492
493 if (unlikely(!ti)) {
494 int srcu_idx;
495 struct dm_table *map;
496
497 map = dm_get_live_table(md, &srcu_idx);
498 if (unlikely(!map)) {
499 DMERR_LIMIT("%s: mapping table unavailable, erroring io",
500 dm_device_name(md));
499 dm_put_live_table(md, srcu_idx);
501 dm_put_live_table(md, srcu_idx);
500 return BLK_STS_RESOURCE;
502 return BLK_STS_IOERR;
501 }
502 ti = dm_table_find_target(map, 0);
503 dm_put_live_table(md, srcu_idx);
504 }
505
506 if (ti->type->busy && ti->type->busy(ti))
507 return BLK_STS_RESOURCE;
508

--- 91 unchanged lines hidden ---
503 }
504 ti = dm_table_find_target(map, 0);
505 dm_put_live_table(md, srcu_idx);
506 }
507
508 if (ti->type->busy && ti->type->busy(ti))
509 return BLK_STS_RESOURCE;
510

--- 91 unchanged lines hidden ---