Re: [PATCH] fix race condition for parallel startup of statd

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

 



Robert Schiele wrote:

  @@ -788,6 +794,11 @@ int start_statd(void)
   			}
   			if (nfs_probe_statd())
   				return 1;
  +			while (cnt--) {
  +				nanosleep(&ts, NULL);
  +				if (nfs_probe_statd())
  +					return 1;
  +			}
   		}
   	}
   #endif

Shouldn't this be something like:

			while (cnt--) {
				if (nfs_probe_statd())
					return 1;
				if (nanosleep(&ts, NULL) < 0)
					break;
			}

?
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux