Submit #2373

Tunable for suppl. delay before vfs_mountroot()

Added by fgudin over 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:05/21/2012
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

My Acer Aspire One (mod. D257) HDD takes quite a while to answer its first actual data requests after boot. When vfs_mountroot() comes in, the default 2 seconds delay after sync_devs() isn't enough (starts working ok with 3 seconds here) and this results in the slice table and parts not being probed yet (so i'm thrown at the 'mountroot>' prompt where issuing '?' several times finally displays my slices, etc.)
The attached patch adds a tunable ('vfs.root.wakedelay' - better ideas welcome) to tweak it if ever needed via loader.conf.
Thanks to swildner@ for his friendly guidance!

wakedelay.diff Magnifier (1.57 KB) fgudin, 05/21/2012 03:33 PM

wakedelay.better.diff Magnifier (2.05 KB) fgudin, 08/26/2012 01:02 PM


Related issues

Related to Submit #2400: TUNABLE_INT location Closed 08/14/2012

History

#1 Updated by alexh about 2 years ago

  • Status changed from New to In Progress

Hi Francis,

can you please have a look at the code review I attached to your patch, and while on it, also add a patch for the loader(8) man page?

As soon as that's done, I'll commit it. Sorry for the delay!

Cheers,
Alex

#2 Updated by fgudin almost 2 years ago

Hi Alex,

No worry, I was away for some weeks :)

Here's the modified diff, according to your review.

Best regards,
--
Francis

#3 Updated by swildner almost 2 years ago

  • Status changed from In Progress to Closed

I pushed it (5a82ae89fa47622130cbc12d4869b3f080a93046).

Thanks!

Also available in: Atom PDF