Merge tag 'v4.20-rc3' into for-4.21/block
Merge in -rc3 to resolve a few conflicts, but also to get a few important fixes that have gone into mainline since the block 4.21 branch was forked off (most notably the SCSI queue issue, which is both a conflict AND needed fix). Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -610,6 +610,12 @@ static bool scsi_end_request(struct request *req, blk_status_t error,
|
||||
*/
|
||||
scsi_mq_uninit_cmd(cmd);
|
||||
|
||||
/*
|
||||
* queue is still alive, so grab the ref for preventing it
|
||||
* from being cleaned up during running queue.
|
||||
*/
|
||||
percpu_ref_get(&q->q_usage_counter);
|
||||
|
||||
__blk_mq_end_request(req, error);
|
||||
|
||||
if (scsi_target(sdev)->single_lun ||
|
||||
@@ -618,6 +624,7 @@ static bool scsi_end_request(struct request *req, blk_status_t error,
|
||||
else
|
||||
blk_mq_run_hw_queues(q, true);
|
||||
|
||||
percpu_ref_put(&q->q_usage_counter);
|
||||
put_device(&sdev->sdev_gendev);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user