login
Header Space

 
 

Re: Problems with -git14

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <npiggin@...>
Cc: Hugh Dickins <hugh@...>, J.A. Magallón <jamagallon@...>, Linux-Kernel <linux-kernel@...>
Date: Tuesday, May 6, 2008 - 3:13 pm

On Fri, May 02 2008, Nick Piggin wrote:

That's USUALLY correct, but not always. If blk_queue_init_tags() is
called for resizing depth, then it's a running queue and we should not
use _unlocked() for that. So basically they can all be _unlocked() due
to lack of concurrency at init time, but not this one:

        } else if (q->queue_tags) {
                rc = blk_queue_resize_tags(q, depth);
                if (rc)
                        return rc;
                queue_flag_set(QUEUE_FLAG_QUEUED, q);
                return 0;
        } ...

So if a driver ever re-calls blk_queue_init_tags() with a tag map
already set, then it needs to hold the queue lock.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problems with -git14, J.A. , (Tue Apr 29, 7:56 pm)
Re: Problems with -git14, Hugh Dickins, (Wed Apr 30, 11:17 am)
Re: Problems with -git14, J.A. , (Wed Apr 30, 8:50 pm)
Re: Problems with -git14, Hugh Dickins, (Thu May 1, 8:11 am)
Re: Problems with -git14, Nick Piggin, (Thu May 1, 9:41 pm)
Re: Problems with -git14, Jens Axboe, (Tue May 6, 3:13 pm)
Re: Problems with -git14, J.A. , (Wed Apr 30, 3:40 pm)
Re: Problems with -git14, Hugh Dickins, (Thu May 1, 8:04 am)
Re: Problems with -git14, Ingo Molnar, (Wed Apr 30, 2:27 pm)
Re: Problems with -git14, Ingo Molnar, (Wed Apr 30, 2:13 pm)
Re: Problems with -git14, Glauber Costa, (Wed Apr 30, 11:54 am)
Re: Problems with -git14, Andrey Panin, (Mon May 5, 3:13 am)
Re: Problems with -git14, Thomas Gleixner, (Mon May 5, 3:49 am)
Re: Problems with -git14, Arjan van de Ven, (Tue Apr 29, 1:22 pm)
speck-geostationary