Commit e6044f7
scsi: core: Only process PM requests if rpm_status != RPM_ACTIVE
Instead of submitting all SCSI commands submitted with scsi_execute() to a
SCSI device if rpm_status != RPM_ACTIVE, only submit RQF_PM (power
management requests) if rpm_status != RPM_ACTIVE. This patch makes the SCSI
core handle the runtime power management status (rpm_status) as it should
be handled.
Link: https://lore.kernel.org/r/20201209052951.16136-7-bvanassche@acm.org
Cc: Can Guo <cang@codeaurora.org>
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Martin Kepplinger <martin.kepplinger@puri.sm>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent cfefd9f commit e6044f7
1 file changed
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
1206 | 1207 | | |
1207 | 1208 | | |
1208 | 1209 | | |
| 1210 | + | |
| 1211 | + | |
1209 | 1212 | | |
1210 | 1213 | | |
1211 | 1214 | | |
| |||
1232 | 1235 | | |
1233 | 1236 | | |
1234 | 1237 | | |
1235 | | - | |
| 1238 | + | |
| 1239 | + | |
1236 | 1240 | | |
1237 | | - | |
| 1241 | + | |
1238 | 1242 | | |
1239 | 1243 | | |
1240 | 1244 | | |
1241 | 1245 | | |
1242 | 1246 | | |
1243 | | - | |
1244 | | - | |
| 1247 | + | |
1245 | 1248 | | |
1246 | | - | |
| 1249 | + | |
1247 | 1250 | | |
1248 | 1251 | | |
1249 | 1252 | | |
| |||
2517 | 2520 | | |
2518 | 2521 | | |
2519 | 2522 | | |
2520 | | - | |
| 2523 | + | |
2521 | 2524 | | |
2522 | 2525 | | |
2523 | 2526 | | |
2524 | 2527 | | |
2525 | | - | |
2526 | | - | |
2527 | | - | |
2528 | | - | |
| 2528 | + | |
| 2529 | + | |
2529 | 2530 | | |
2530 | 2531 | | |
2531 | 2532 | | |
| |||
2587 | 2588 | | |
2588 | 2589 | | |
2589 | 2590 | | |
| 2591 | + | |
| 2592 | + | |
2590 | 2593 | | |
2591 | 2594 | | |
2592 | 2595 | | |
2593 | 2596 | | |
2594 | | - | |
2595 | | - | |
2596 | 2597 | | |
2597 | 2598 | | |
2598 | 2599 | | |
| |||
0 commit comments