diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-14 16:47:45 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-14 16:47:45 -0400 |
commit | 84d891d6727c17832c79ec96d3d107a87d857978 (patch) | |
tree | a189a4d00c1387e409e2f9808c72c8088728c33b /drivers/scsi/scsi_lib.c | |
parent | 5bb0b55a3283369f1cd8ac76a6d8bda8e7a77055 (diff) | |
parent | 7676f83aeb774e7a3abe6af06ec92b29488b5b79 (diff) |
Merge ../scsi-rc-fixes-2.6
Conflicts:
include/scsi/scsi_devinfo.h
Same number for two BLIST flags: BLIST_MAX_512 and BLIST_ATTACH_PQ3
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 8f010a314a3d..7b0f9a3810d2 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -1479,6 +1479,8 @@ static inline int scsi_host_queue_ready(struct request_queue *q, | |||
1479 | static void scsi_kill_request(struct request *req, request_queue_t *q) | 1479 | static void scsi_kill_request(struct request *req, request_queue_t *q) |
1480 | { | 1480 | { |
1481 | struct scsi_cmnd *cmd = req->special; | 1481 | struct scsi_cmnd *cmd = req->special; |
1482 | struct scsi_device *sdev = cmd->device; | ||
1483 | struct Scsi_Host *shost = sdev->host; | ||
1482 | 1484 | ||
1483 | blkdev_dequeue_request(req); | 1485 | blkdev_dequeue_request(req); |
1484 | 1486 | ||
@@ -1491,6 +1493,19 @@ static void scsi_kill_request(struct request *req, request_queue_t *q) | |||
1491 | scsi_init_cmd_errh(cmd); | 1493 | scsi_init_cmd_errh(cmd); |
1492 | cmd->result = DID_NO_CONNECT << 16; | 1494 | cmd->result = DID_NO_CONNECT << 16; |
1493 | atomic_inc(&cmd->device->iorequest_cnt); | 1495 | atomic_inc(&cmd->device->iorequest_cnt); |
1496 | |||
1497 | /* | ||
1498 | * SCSI request completion path will do scsi_device_unbusy(), | ||
1499 | * bump busy counts. To bump the counters, we need to dance | ||
1500 | * with the locks as normal issue path does. | ||
1501 | */ | ||
1502 | sdev->device_busy++; | ||
1503 | spin_unlock(sdev->request_queue->queue_lock); | ||
1504 | spin_lock(shost->host_lock); | ||
1505 | shost->host_busy++; | ||
1506 | spin_unlock(shost->host_lock); | ||
1507 | spin_lock(sdev->request_queue->queue_lock); | ||
1508 | |||
1494 | __scsi_done(cmd); | 1509 | __scsi_done(cmd); |
1495 | } | 1510 | } |
1496 | 1511 | ||