Re: [PATCH v4 01/10] block: Change the preempt-only flag into a counter
From: Hannes Reinecke <hare@suse.de>
Date: 2018-08-06 06:25:21
On 08/04/2018 02:03 AM, Bart Van Assche wrote:
Rename "preempt-only" into "pm-only" because the primary purpose of this mode is power management. Since the power management core may but does not have to resume a runtime suspended device before performing system-wide suspend and since a later patch will set "pm-only" mode as long as a block device is runtime suspended, make it possible to set "pm-only" mode from more than one context. Signed-off-by: Bart Van Assche <redacted> Cc: Christoph Hellwig <hch@lst.de> Cc: Jianchao Wang <redacted> Cc: Ming Lei <redacted> Cc: Johannes Thumshirn <redacted> Cc: Alan Stern <stern@rowland.harvard.edu> --- block/blk-core.c | 35 ++++++++++++++++++----------------- block/blk-mq-debugfs.c | 10 +++++++++- drivers/scsi/scsi_lib.c | 8 ++++---- include/linux/blkdev.h | 14 +++++++++----- 4 files changed, 40 insertions(+), 27 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)