Merging upstream version 2.10.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
736f2f7c80
commit
37275c4af3
530 changed files with 12276 additions and 4877 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue