Skip to content

Nvme cancel lsfmm 2#11

Open
johnmeneghini wants to merge 6 commits into
johnm_nvme_timeouts_7.1_v5from
nvme-cancel-lsfmm_2
Open

Nvme cancel lsfmm 2#11
johnmeneghini wants to merge 6 commits into
johnm_nvme_timeouts_7.1_v5from
nvme-cancel-lsfmm_2

Conversation

@johnmeneghini
Copy link
Copy Markdown
Owner

Missing commits from nvme_timeouts_7.1_v4

maurizio-lombardi and others added 6 commits April 14, 2026 14:26
Add a module parameter that allows the user to enable a basic
cancel command emulation, this could be useful for testing the host
driver's cancel command implementation.

It just reports that no abort has been executed, it will however
do some basic sanity check on the command sent by the host and return
an error if the fields are invalid.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
This is setup for being able to manipluate the outstanding requests.

Signed-off-by: Chris Leech <cleech@redhat.com>
Creates an delay attribute file on the controler in debugfs
/sys/kernel/debug/nvmet/<subsystem>/ctrlN/delay

Reading this file returns two numbers, a reqeust delay count and a delay
time in ms.  Each delayed request will decrement the delay count until
it reaches 0.

Writing to this file can set both the delay and count at once, or just
the count to trigger more delays.

 # delay the next 5 request by 5 seconds each
 echo 5 5000 > delay

 # set the delay time to 3 seconds without starting a count
 echo 0 3000 > delay

 # delay to the next 5 requests by the current delay time
 echo 5 > delay

Signed-off-by: Chris Leech <cleech@redhat.com>
Allow requests to be delayed for testing.

Signed-off-by: Chris Leech <cleech@redhat.com>
Enable tracking of all outstanding requests in an XArray

Signed-off-by: Chris Leech <cleech@redhat.com>
Requests are canceled if the have been delayed and cancel_delayed_work
is successfull.

replace emulate_cancel_commands modparam with the delay kconfig

Signed-off-by: Chris Leech <cleech@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants