[GIT PULL 09/58] lightnvm: pblk: improve error message if down_timeout fails

2017-10-13 Thread Matias Bjørling
ret = down_timeout(&rlun->wr_sem, msecs_to_jiffies(3)); - if (ret) { - switch (ret) { - case -ETIME: - pr_err("pblk: lun semaphore timed out\n"); - break; - case -EINTR: -

Re: [PATCH 4/6] lightnvm: pblk: improve error message if down_timeout fails

2017-09-25 Thread Matias Bjørling
endif ret = down_timeout(&rlun->wr_sem, msecs_to_jiffies(3)); - if (ret) { - switch (ret) { - case -ETIME: - pr_err("pblk: lun semaphore timed out\n"); - break; - case -EINTR: -

Re: [PATCH 4/6] lightnvm: pblk: improve error message if down_timeout fails

2017-09-22 Thread Javier González
uct > ppa_addr *ppa_list, > #endif > > ret = down_timeout(&rlun->wr_sem, msecs_to_jiffies(3)); > - if (ret) { > - switch (ret) { > - case -ETIME: > - pr_err("pblk: lun semaphore timed out\n"); > -

[PATCH 4/6] lightnvm: pblk: improve error message if down_timeout fails

2017-09-21 Thread Rakesh Pandit
index b92eabc..74ddb30 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1734,16 +1734,8 @@ static void __pblk_down_page(struct pblk *pblk, struct ppa_addr *ppa_list, #endif ret = down_timeout(&rlun->wr_sem, msecs_to_jiffies(3)); -

Re: whatever happened to down_timeout()?

2007-02-13 Thread Chris Friesen
Chris Friesen wrote: static inline int down_timeout(struct semaphore * sem, unsigned int timeout) { int ret = down_trylock(sem); if (!ret) ret = __down_timeout(sem, timeout); return ret; } Sorry, I think that should be: static inline int down_timeout(struct semaphore

whatever happened to down_timeout()?

2007-02-13 Thread Chris Friesen
There has been some discussion on lkml about a function that would either down a semaphore or else abort if it couldn't get the semaphore in a certain amount of time. Something along the lines of: down_timeout(struct semaphore *sem, long timeout); Does something like this exist?

RE: down_timeout

2001-04-26 Thread Moore, Robert
Re: down_timeout On Wed, Apr 25, 2001 at 04:21:22PM -0700, Grover, Andrew wrote: > It seems like we need to implement down_timeout (and > down_timeout_interruptible) to fully flesh out the semaphore implementation. >

Re: down_timeout

2001-04-25 Thread Ingo Oeser
On Wed, Apr 25, 2001 at 04:21:22PM -0700, Grover, Andrew wrote: > It seems like we need to implement down_timeout (and > down_timeout_interruptible) to fully flesh out the semaphore implementation. > It is difficult and inefficient to emulate this using wrapper functions, as > far

down_timeout

2001-04-25 Thread Grover, Andrew
It seems like we need to implement down_timeout (and down_timeout_interruptible) to fully flesh out the semaphore implementation. It is difficult and inefficient to emulate this using wrapper functions, as far as I can see. Seems like this is a fairly standard interface to have for OS semaphores