Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@fb.com>
To: sedat.dilek@gmail.com
Cc: Ming Lei <ming.lei@canonical.com>, fio@vger.kernel.org
Subject: Re: [PATCH] axmap: fix deadlock
Date: Sat, 3 Jan 2015 13:13:02 -0700	[thread overview]
Message-ID: <54A84D4E.5060404@fb.com> (raw)
In-Reply-To: <CA+icZUWcafgFE27NbYPhKtjJ6Vqk_o4nmxKHhgXj7q3vNBvw7w@mail.gmail.com>

On 01/03/2015 12:39 PM, Sedat Dilek wrote:
> On Sat, Jan 3, 2015 at 7:11 PM, Jens Axboe <axboe@fb.com> wrote:
>> On 01/03/2015 07:21 AM, Ming Lei wrote:
>>> axmap_first_free() is always called with axmap->lock held,
>>> so needn't to acquire the lock inside the function.
>>>
>>> The deadlock is introduced in commit 12bde3697fc230d7a(axmap:
>>> ensure we lock down the maps for shared access).
>>>
>>> Given axmap_first_free() is only called inside lib/axmap.c,
>>> this patch declares the function as static. In the future,
>>> if external users need the function, axmap lock can be
>>> considered at that time.
>>
>> Thanks Ming, applied.
>>
>
> Do you use the "Fixes:" tag in fio development [1]?
>
> Fixes: 12bde3697fc2 ("axmap: ensure we lock down the maps for shared access")

I sometimes mention the commit that it fixes, if I remember I do. It's 
usually done like Ming did it in his commit:

     The deadlock is introduced in commit 12bde3697fc230d7a(axmap:
     ensure we lock down the maps for shared access).

and not as a specific Fixes: like we use on the linux kernel side. It 
makes more sense to do for the kernel since we maintain stable branches, 
so you can have tools figure out how far back to backport certain fixes. 
Fio doesn't maintain stable branches off releases, so it's less relevant 
there. I just people to use the latest release, and/or tip.

-- 
Jens Axboe


  reply	other threads:[~2015-01-03 20:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-03 14:21 [PATCH] axmap: fix deadlock Ming Lei
2015-01-03 14:37 ` Sedat Dilek
2015-01-03 18:11 ` Jens Axboe
2015-01-03 19:39   ` Sedat Dilek
2015-01-03 20:13     ` Jens Axboe [this message]
2015-01-03 23:51       ` Sedat Dilek
2015-01-04  2:48         ` Jens Axboe
2015-01-04  8:09           ` Sedat Dilek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54A84D4E.5060404@fb.com \
    --to=axboe@fb.com \
    --cc=fio@vger.kernel.org \
    --cc=ming.lei@canonical.com \
    --cc=sedat.dilek@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox