Skip to content

nvme-cli: add support for an abort command with documentation

Johannes Thumshirn linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nvme-cli: add support for an abort command with documentation
Quoted 13 lines · Minwoo Im

Hello Johannes,

Quoted 9 lines · Johannes Thumshirn
Quoted 2 lines · Minwoo Im

It would be convenient to use abort command by a subcommand. This command will strongly used by device developers to test device.

Ahm... please no.

If you need it for development just hack a small tool to create the passthrough ioctl() call but don't hand out loaded guns to children^Wusers.

Quoted 6 lines

Thanks for your kindly comment.

I thought nvme-cli tool would be used mostly by developers, not children users. Also thought that it will not need any helps from kernel to abort a specified command not just like delete I/O SQ/CQ so that nvme-cli could handle this kind of thing.

nvme-cli will also be used by administrators intending to setup nvme over fabrics connections or debug nvme multipathing as well. It is certainly not a developer only tool.

Quoted 1 line

But, actually there is no limit for anybody to use this interface tool.

Yes, actually thinking more of it, the whole passthrough interface is dangerous. What happens if a user sends a delete CQ/SQ command via this interface and the kernel still tries to do I/O to it?

I think I'll need to come up with a testcase for this.

Johannes

Signature · 6 lines
Johannes Thumshirn                                          Storage
jthumshirn at suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850