Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4328fea7 authored by Karim Eshapa's avatar Karim Eshapa Committed by Steve French
Browse files

fs: cifs: transport: Use time_after for time comparison



Use time_after kernel macro for time comparison
that has safety check.

Signed-off-by: default avatarKarim Eshapa <karim.eshapa@gmail.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent cd123007
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ DeleteMidQEntry(struct mid_q_entry *midEntry)
	now = jiffies;
	/* commands taking longer than one second are indications that
	   something is wrong, unless it is quite a slow link or server */
	if ((now - midEntry->when_alloc) > HZ) {
	if (time_after(now, midEntry->when_alloc + HZ)) {
		if ((cifsFYI & CIFS_TIMER) && (midEntry->command != command)) {
			pr_debug(" CIFS slow rsp: cmd %d mid %llu",
			       midEntry->command, midEntry->mid);