diff options
| -rw-r--r-- | drivers/scsi/scsi_lib.c | 4 | ||||
| -rw-r--r-- | include/linux/blk_types.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 54d7a6cbb98a..b1a263137a23 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
| @@ -1311,9 +1311,11 @@ scsi_prep_state_check(struct scsi_device *sdev, struct request *req) | |||
| 1311 | "rejecting I/O to dead device\n"); | 1311 | "rejecting I/O to dead device\n"); |
| 1312 | ret = BLKPREP_KILL; | 1312 | ret = BLKPREP_KILL; |
| 1313 | break; | 1313 | break; |
| 1314 | case SDEV_QUIESCE: | ||
| 1315 | case SDEV_BLOCK: | 1314 | case SDEV_BLOCK: |
| 1316 | case SDEV_CREATED_BLOCK: | 1315 | case SDEV_CREATED_BLOCK: |
| 1316 | ret = BLKPREP_DEFER; | ||
| 1317 | break; | ||
| 1318 | case SDEV_QUIESCE: | ||
| 1317 | /* | 1319 | /* |
| 1318 | * If the devices is blocked we defer normal commands. | 1320 | * If the devices is blocked we defer normal commands. |
| 1319 | */ | 1321 | */ |
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index c294e3e25e37..a1b25e35ea5f 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h | |||
| @@ -181,7 +181,9 @@ enum rq_flag_bits { | |||
| 181 | __REQ_ELVPRIV, /* elevator private data attached */ | 181 | __REQ_ELVPRIV, /* elevator private data attached */ |
| 182 | __REQ_FAILED, /* set if the request failed */ | 182 | __REQ_FAILED, /* set if the request failed */ |
| 183 | __REQ_QUIET, /* don't worry about errors */ | 183 | __REQ_QUIET, /* don't worry about errors */ |
| 184 | __REQ_PREEMPT, /* set for "ide_preempt" requests */ | 184 | __REQ_PREEMPT, /* set for "ide_preempt" requests and also |
| 185 | for requests for which the SCSI "quiesce" | ||
| 186 | state must be ignored. */ | ||
| 185 | __REQ_ALLOCED, /* request came from our alloc pool */ | 187 | __REQ_ALLOCED, /* request came from our alloc pool */ |
| 186 | __REQ_COPY_USER, /* contains copies of user pages */ | 188 | __REQ_COPY_USER, /* contains copies of user pages */ |
| 187 | __REQ_FLUSH_SEQ, /* request for flush sequence */ | 189 | __REQ_FLUSH_SEQ, /* request for flush sequence */ |
