You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[SCSI] scsi_dh_hp_sw: fix deadlock in start_stop_endio
The use of blk_execute_rq_nowait() implies __blk_put_request() is needed in start_stop_endio() rather than blk_put_request() -- blk_finish_request() is called with queue lock already held. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
98cb7e4413
commit
7a1e9d829f
@@ -225,7 +225,8 @@ static void start_stop_endio(struct request *req, int error)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
blk_put_request(req);
|
req->end_io_data = NULL;
|
||||||
|
__blk_put_request(req->q, req);
|
||||||
if (h->callback_fn) {
|
if (h->callback_fn) {
|
||||||
h->callback_fn(h->callback_data, err);
|
h->callback_fn(h->callback_data, err);
|
||||||
h->callback_fn = h->callback_data = NULL;
|
h->callback_fn = h->callback_data = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user