Re: [PATCH v3 2/4] block: add a read barrier in blk_queue_enter()
From: Johannes Thumshirn <hidden>
Date: 2017-03-27 12:33:48
From: Johannes Thumshirn <hidden>
Date: 2017-03-27 12:33:48
On Mon, Mar 27, 2017 at 08:06:56PM +0800, Ming Lei wrote:
Without the barrier, reading DEAD flag of .q_usage_counter and reading .mq_freeze_depth may be reordered, then the following wait_event_interruptible() may never return. Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Ming Lei <tom.leiming@gmail.com> ---
Reviewed-by: Johannes Thumshirn <redacted> -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg GF: Felix Imend�rffer, Jane Smithard, Graham Norton HRB 21284 (AG N�rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850