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 <bart.vanassche@xxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Jianchao Wang <jianchao.w.wang@xxxxxxxxxx> > Cc: Ming Lei <ming.lei@xxxxxxxxxx> > Cc: Johannes Thumshirn <jthumshirn@xxxxxxx> > Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> > --- > 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@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +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)