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
ieee1394: sbp2: recheck node generation in sbp2_update
While sbp2_update() is doing its duties after a bus reset, another reset could happen. Don't accept new requests until the next undisturbed sbp2_update() or until sbp2_remove(). Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
@@ -802,11 +802,12 @@ static int sbp2_update(struct unit_directory *ud)
|
|||||||
*/
|
*/
|
||||||
sbp2scsi_complete_all_commands(scsi_id, DID_BUS_BUSY);
|
sbp2scsi_complete_all_commands(scsi_id, DID_BUS_BUSY);
|
||||||
|
|
||||||
/* Make sure we unblock requests (since this is likely after a bus
|
/* Accept new commands unless there was another bus reset in the
|
||||||
* reset). */
|
* meantime. */
|
||||||
|
if (hpsb_node_entry_valid(scsi_id->ne)) {
|
||||||
atomic_set(&scsi_id->unfinished_reset, 0);
|
atomic_set(&scsi_id->unfinished_reset, 0);
|
||||||
scsi_unblock_requests(scsi_id->scsi_host);
|
scsi_unblock_requests(scsi_id->scsi_host);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user