lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 28 Sep 2011 17:49:58 +0900
From:	Namhyung Kim <namhyung@...il.com>
To:	Shaohua Li <shaohua.li@...el.com>
Cc:	Jens Axboe <axboe@...nel.dk>, lkml <linux-kernel@...r.kernel.org>
Subject: Re: [patch 2/2]block: add missed trace_block_plug

Shaohua Li <shaohua.li@...el.com> writes:

> After flush plug list, the list has no request, so we need
> add a trace_block_plug.
>
> Signed-off-by: Shaohua Li <shaohua.li@...el.com>
Reviewed-by: Namhyung Kim <namhyung@...il.com>


>
> ---
>  block/blk-core.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> Index: linux/block/blk-core.c
> ===================================================================
> --- linux.orig/block/blk-core.c	2011-09-28 11:05:22.000000000 +0800
> +++ linux/block/blk-core.c	2011-09-28 11:05:42.000000000 +0800
> @@ -1307,8 +1307,10 @@ get_rq:
>  				if (__rq->q != q)
>  					plug->should_sort = 1;
>  			}
> -			if (request_count >= BLK_MAX_REQUEST_COUNT)
> +			if (request_count >= BLK_MAX_REQUEST_COUNT) {
>  				blk_flush_plug_list(plug, false);
> +				trace_block_plug(q);
> +			}
>  		}
>  		list_add_tail(&req->queuelist, &plug->list);
>  		drive_stat_acct(req, 1);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ