Skip to content

Commit 17d8310

Browse files
authored
enable id zero
1 parent bc27f97 commit 17d8310

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

module/bdev/lvol/vbdev_lvol.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,14 +1514,14 @@ vbdev_hublvol_submit_request(struct spdk_io_channel *ch, struct spdk_bdev_io *bd
15141514
uint64_t offset = bdev_io->u.bdev.offset_blocks;
15151515
bool io_type = check_IO_type(bdev_io->type);
15161516
uint16_t id = EXTRACT_ID(offset);
1517-
// if (id == 0) {
1518-
// SPDK_ERRLOG("HUBLVOL - orglvol in none due to zero id - blob: %" PRIu64 " "
1519-
// "Lba: %" PRIu64 " Cnt %" PRIu64 " t %d \n",
1520-
// lvol->blob_id, offset, bdev_io->u.bdev.num_blocks, bdev_io->type);
1521-
// __atomic_sub_fetch(&lvs->current_io_t, 1, __ATOMIC_SEQ_CST);
1522-
// spdk_bdev_io_complete(bdev_io, SPDK_BDEV_IO_STATUS_FAILED);
1523-
// return;
1524-
// }
1517+
if (id == 0) {
1518+
SPDK_ERRLOG("HUBLVOL - orglvol in none due to zero id - blob: %" PRIu64 " "
1519+
"Lba: %" PRIu64 " Cnt %" PRIu64 " t %d \n",
1520+
lvol->blob_id, offset, bdev_io->u.bdev.num_blocks, bdev_io->type);
1521+
__atomic_sub_fetch(&lvs->current_io_t, 1, __ATOMIC_SEQ_CST);
1522+
spdk_bdev_io_complete(bdev_io, SPDK_BDEV_IO_STATUS_FAILED);
1523+
return;
1524+
}
15251525

15261526
struct spdk_lvol *org_lvol = lvs->lvol_map.lvol[id];
15271527
offset = ADJUST_OFFSET(offset);

0 commit comments

Comments
 (0)