Skip to content

Commit bf9196d

Browse files
committed
Merge tag 'block-5.7-2020-04-17' of git://git.kernel.dk/linux-block
Pull block fixes from Jens Axboe: - Fix for a driver tag leak in error handling (John) - Remove now defunct Kconfig selection from dasd (Stefan) - blk-wbt trace fiexs (Tommi) * tag 'block-5.7-2020-04-17' of git://git.kernel.dk/linux-block: blk-wbt: Drop needless newlines from tracepoint format strings blk-wbt: Use tracepoint_string() for wbt_step tracepoint string literals s390/dasd: remove IOSCHED_DEADLINE from DASD Kconfig blk-mq: Put driver tag in blk_mq_dispatch_rq_list() when no budget
2 parents 2acbb9e + 3f22037 commit bf9196d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

block/blk-mq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,8 +1222,10 @@ bool blk_mq_dispatch_rq_list(struct request_queue *q, struct list_head *list,
12221222
rq = list_first_entry(list, struct request, queuelist);
12231223

12241224
hctx = rq->mq_hctx;
1225-
if (!got_budget && !blk_mq_get_dispatch_budget(hctx))
1225+
if (!got_budget && !blk_mq_get_dispatch_budget(hctx)) {
1226+
blk_mq_put_driver_tag(rq);
12261227
break;
1228+
}
12271229

12281230
if (!blk_mq_get_driver_tag(rq)) {
12291231
/*

block/blk-wbt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static void scale_up(struct rq_wb *rwb)
313313
calc_wb_limits(rwb);
314314
rwb->unknown_cnt = 0;
315315
rwb_wake_all(rwb);
316-
rwb_trace_step(rwb, "scale up");
316+
rwb_trace_step(rwb, tracepoint_string("scale up"));
317317
}
318318

319319
static void scale_down(struct rq_wb *rwb, bool hard_throttle)
@@ -322,7 +322,7 @@ static void scale_down(struct rq_wb *rwb, bool hard_throttle)
322322
return;
323323
calc_wb_limits(rwb);
324324
rwb->unknown_cnt = 0;
325-
rwb_trace_step(rwb, "scale down");
325+
rwb_trace_step(rwb, tracepoint_string("scale down"));
326326
}
327327

328328
static void rwb_arm_timer(struct rq_wb *rwb)

drivers/s390/block/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ config DASD
2626
def_tristate y
2727
prompt "Support for DASD devices"
2828
depends on CCW && BLOCK
29-
select IOSCHED_DEADLINE
3029
help
3130
Enable this option if you want to access DASDs directly utilizing
3231
S/390s channel subsystem commands. This is necessary for running

include/trace/events/wbt.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TRACE_EVENT(wbt_stat,
4646
),
4747

4848
TP_printk("%s: rmean=%llu, rmin=%llu, rmax=%llu, rsamples=%llu, "
49-
"wmean=%llu, wmin=%llu, wmax=%llu, wsamples=%llu\n",
49+
"wmean=%llu, wmin=%llu, wmax=%llu, wsamples=%llu",
5050
__entry->name, __entry->rmean, __entry->rmin, __entry->rmax,
5151
__entry->rnr_samples, __entry->wmean, __entry->wmin,
5252
__entry->wmax, __entry->wnr_samples)
@@ -73,7 +73,7 @@ TRACE_EVENT(wbt_lat,
7373
__entry->lat = div_u64(lat, 1000);
7474
),
7575

76-
TP_printk("%s: latency %lluus\n", __entry->name,
76+
TP_printk("%s: latency %lluus", __entry->name,
7777
(unsigned long long) __entry->lat)
7878
);
7979

@@ -115,7 +115,7 @@ TRACE_EVENT(wbt_step,
115115
__entry->max = max;
116116
),
117117

118-
TP_printk("%s: %s: step=%d, window=%luus, background=%u, normal=%u, max=%u\n",
118+
TP_printk("%s: %s: step=%d, window=%luus, background=%u, normal=%u, max=%u",
119119
__entry->name, __entry->msg, __entry->step, __entry->window,
120120
__entry->bg, __entry->normal, __entry->max)
121121
);
@@ -148,7 +148,7 @@ TRACE_EVENT(wbt_timer,
148148
__entry->inflight = inflight;
149149
),
150150

151-
TP_printk("%s: status=%u, step=%d, inflight=%u\n", __entry->name,
151+
TP_printk("%s: status=%u, step=%d, inflight=%u", __entry->name,
152152
__entry->status, __entry->step, __entry->inflight)
153153
);
154154

0 commit comments

Comments
 (0)