|
@@ -91,6 +91,9 @@ static int octeon_console_debug_enabled(u32 console)
|
|
|
*/
|
|
|
#define LIO_SYNC_OCTEON_TIME_INTERVAL_MS 60000
|
|
|
|
|
|
+/* time to wait for possible in-flight requests in milliseconds */
|
|
|
+#define WAIT_INFLIGHT_REQUEST msecs_to_jiffies(1000)
|
|
|
+
|
|
|
struct lio_trusted_vf_ctx {
|
|
|
struct completion complete;
|
|
|
int status;
|
|
@@ -259,7 +262,7 @@ static inline void pcierror_quiesce_device(struct octeon_device *oct)
|
|
|
force_io_queues_off(oct);
|
|
|
|
|
|
/* To allow for in-flight requests */
|
|
|
- schedule_timeout_uninterruptible(100);
|
|
|
+ schedule_timeout_uninterruptible(WAIT_INFLIGHT_REQUEST);
|
|
|
|
|
|
if (wait_for_pending_requests(oct))
|
|
|
dev_err(&oct->pci_dev->dev, "There were pending requests\n");
|