History

NVMe: Abort timed out commands

Send nvme abort command to io requests that have timed out on an initialized device. If the command is not returned after another timeout, schedule the controller for reset.

Keith Busch committed 12 years ago

Commit c30341d1 parent d4b4ff83 files · +79 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nvme.h+11−0
@@ -350,6 +350,16 @@ struct nvme_delete_queue { · 349 unmodified lines
350350 __u32 rsvd11[5];
351351 };
352352
353+struct nvme_abort_cmd {
354+ __u8 opcode;
355+ __u8 flags;
356+ __u16 command_id;
357+ __u32 rsvd1[9];
358+ __le16 sqid;
359+ __u16 cid;
360+ __u32 rsvd11[5];
361+};
362+
353363 struct nvme_download_firmware {
354364 __u8 opcode;
355365 __u8 flags;
@@ -384,6 +394,7 @@ struct nvme_command { · 28 unmodified lines
384394 struct nvme_download_firmware dlfw;
385395 struct nvme_format_cmd format;
386396 struct nvme_dsm_cmd dsm;
397+ struct nvme_abort_cmd abort;
387398 };
388399 };
389400