1
0
Fork 0

Merging upstream version 2.10.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:27:38 +01:00
parent 736f2f7c80
commit 37275c4af3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
530 changed files with 12276 additions and 4877 deletions

View file

@ -92,15 +92,14 @@ int nvme_submit_passthru(int fd, unsigned long ioctl_cmd,
struct timeval end;
int err;
if (log_level >= LOG_INFO)
if (log_level >= LOG_DEBUG)
gettimeofday(&start, NULL);
err = ioctl(fd, ioctl_cmd, cmd);
if (log_level >= LOG_INFO) {
if (log_level >= LOG_DEBUG) {
gettimeofday(&end, NULL);
if (log_level >= LOG_DEBUG)
nvme_show_command(cmd, err);
nvme_show_command(cmd, err);
nvme_show_latency(start, end);
}
@ -118,16 +117,15 @@ int nvme_submit_passthru64(int fd, unsigned long ioctl_cmd,
struct timeval end;
int err;
if (log_level >= LOG_INFO)
if (log_level >= LOG_DEBUG)
gettimeofday(&start, NULL);
err = ioctl(fd, ioctl_cmd, cmd);
if (log_level >= LOG_INFO) {
if (log_level >= LOG_DEBUG) {
gettimeofday(&end, NULL);
if (log_level >= LOG_DEBUG)
nvme_show_command64(cmd, err);
nvme_show_command64(cmd, err);
nvme_show_latency(start, end);
}