mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drbd: finally report ms, not jiffies, in log message
Also skip the message unless bitmap IO took longer than 5 ms. Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
4e526a0046
commit
13c2088d41
1 changed files with 8 additions and 4 deletions
|
|
@ -1121,10 +1121,14 @@ static int bm_rw(struct drbd_device *device, const unsigned int flags, unsigned
|
|||
kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy);
|
||||
|
||||
/* summary for global bitmap IO */
|
||||
if (flags == 0)
|
||||
drbd_info(device, "bitmap %s of %u pages took %lu jiffies\n",
|
||||
(flags & BM_AIO_READ) ? "READ" : "WRITE",
|
||||
count, jiffies - now);
|
||||
if (flags == 0) {
|
||||
unsigned int ms = jiffies_to_msecs(jiffies - now);
|
||||
if (ms > 5) {
|
||||
drbd_info(device, "bitmap %s of %u pages took %u ms\n",
|
||||
(flags & BM_AIO_READ) ? "READ" : "WRITE",
|
||||
count, ms);
|
||||
}
|
||||
}
|
||||
|
||||
if (ctx->error) {
|
||||
drbd_alert(device, "we had at least one MD IO ERROR during bitmap IO\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue