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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -350,6 +350,16 @@ struct nvme_delete_queue { · 349 unmodified lines | ||
| 350 | 350 | __u32 rsvd11[5]; |
| 351 | 351 | }; |
| 352 | 352 | |
| 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 | + | |
| 353 | 363 | struct nvme_download_firmware { |
| 354 | 364 | __u8 opcode; |
| 355 | 365 | __u8 flags; |
| @@ -384,6 +394,7 @@ struct nvme_command { · 28 unmodified lines | ||
| 384 | 394 | struct nvme_download_firmware dlfw; |
| 385 | 395 | struct nvme_format_cmd format; |
| 386 | 396 | struct nvme_dsm_cmd dsm; |
| 397 | + struct nvme_abort_cmd abort; | |
| 387 | 398 | }; |
| 388 | 399 | }; |
| 389 | 400 | |