diff options
author | Christoph Hellwig <[email protected]> | 2015-12-24 15:27:01 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-01-12 13:30:15 -0700 |
commit | bfd8947194b2e2a53db82bbc7eb7c15d028c46db (patch) | |
tree | 8cd742ec462ee52b98641bcbda53a91d5564ad7f /scripts/gdb/linux/utils.py | |
parent | 69d3b8ac15a5eb938e6a01909f6cc8ae4b5d3a17 (diff) |
nvme: fixes for NVME_IOCTL_IO_CMD on the char device
Make sure we synchronize access to the namespaces list and grab a reference
to the namespace before doing I/O. Make sure to reject the ioctl if multiple
namespaces are present as it's entirely unsafe, and warn when using it even
with a single namespace.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Acked-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions