On 06/20/2017 12:07 AM, Bart Van Assche wrote:
From: Bart Van Assche <redacted>
Since the srcu structure is rather large (184 bytes on an x86-64
system with kernel debugging disabled), only allocate it if needed.
Reported-by: Ming Lei <redacted>
Signed-off-by: Bart Van Assche <redacted>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <redacted>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Omar Sandoval <redacted>
---
block/blk-mq.c | 30 ++++++++++++++++++++++--------
include/linux/blk-mq.h | 5 +++--
2 files changed, 25 insertions(+), 10 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)