[PATCH] Use the POSIX `EDEADLK` instead of the Linux `EDEADLOCK`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




From 290c6a4ea5f5929c07fc3feecca503074ffa35eb Mon Sep 17 00:00:00 2001
From: Bruce Cran <Bruce.Cran@xxxxxxxxxxx>
Date: Mon, 24 Oct 2016 12:08:40 -0600
Subject: [PATCH] Use the POSIX `EDEADLK` instead of the Linux `EDEADLOCK`

---
 backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend.c b/backend.c
index f0927ab..ed4f1f0 100644
--- a/backend.c
+++ b/backend.c
@@ -1748,7 +1748,7 @@ static void *thread_main(void *data)
 			usleep(1000);
 			if (deadlock_loop_cnt++ > 5000) {
 				log_err("fio seems to be stuck grabbing stat_mutex, forcibly exiting\n");
-				td->error = EDEADLOCK;
+				td->error = EDEADLK;
 				goto err;
 			}
 		} while (1);
-- 
2.10.1


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux