On Tue, Apr 28, 2020 at 07:19:33AM -0700, Bart Van Assche wrote: > On 2020-04-28 00:46, Ming Lei wrote: > > +/* > > + * Used in sync IO for avoiding to triger task hung warning, which may > > + * cause system panic or reboot. > > + */ > > +static inline unsigned long blk_default_io_timeout(void) > > +{ > > + return sysctl_hung_task_timeout_secs * (HZ / 2); > > +} > > + > > #endif > > This function is only used inside the block layer. Has it been > considered to move this function from the public block layer API into a > private header file, e.g. block/blk.h? Please look at the commit log or the 2nd patch, and the helper will be used in 2nd patch in dio code. Thanks, Ming