Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/bhyve/block_if.c
Show First 20 Lines • Show All 570 Lines • ▼ Show 20 Lines | for (i = 0; i < BLOCKIF_NUMTHR; i++) { | ||||
snprintf(tname, sizeof(tname), "blk-%s-%d", ident, i); | snprintf(tname, sizeof(tname), "blk-%s-%d", ident, i); | ||||
pthread_set_name_np(bc->bc_btid[i], tname); | pthread_set_name_np(bc->bc_btid[i], tname); | ||||
} | } | ||||
return (bc); | return (bc); | ||||
err: | err: | ||||
if (fd >= 0) | if (fd >= 0) | ||||
close(fd); | close(fd); | ||||
free(cp); | |||||
free(xopts); | |||||
free(nopt); | free(nopt); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
static int | static int | ||||
blockif_request(struct blockif_ctxt *bc, struct blockif_req *breq, | blockif_request(struct blockif_ctxt *bc, struct blockif_req *breq, | ||||
enum blockop op) | enum blockop op) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines |