linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: Ilya Dryomov <idryomov@gmail.com>, Chris Mason <clm@fb.com>,
	David Sterba <dsterba@suse.cz>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Another 4.8-rc locked splat: btrfs_close_devices()
Date: Fri, 9 Sep 2016 16:33:01 +0800	[thread overview]
Message-ID: <cd34d188-e75a-3251-10df-70917836e721@oracle.com> (raw)
In-Reply-To: <36933898-3295-a9ae-aefd-3483333743dc@oracle.com>




  Looks like we need to take time to clean up device_list_mutex,
  chunk_mutex, volume_mutex and rcu. As of now I have sent out,
      [PATCH] btrfs: fix a possible umount deadlock

  This has passed xfstests/btrfs.

Thanks, Anand

On 09/09/2016 08:38 AM, Anand Jain wrote:
>
> Thanks for the report Ilya.
>
> Yep. Have seen similar issues during hotspare fixes as well.
> Where the vfs call to btrfs_show_devname() and its
> device_list_mutex lock is conflicting. One of that is fixed
> here.
>
> ------
> 779bf3fefa835cb52a07457c8acac6f2f66f2493
>     btrfs: fix lock dep warning, move scratch dev out of
> device_list_mutex and uuid_mutex
> ------
>
> I was kind of expecting this here as well when wrote 142388194191.
> However couldn't reproduce.
>
> To fix this permanently, I see the following choices,
>
> Chris/David,
>
>  1. Do you think device_list_mutex is needed at btrfs_show_devname()
>  or rcu should suffice. ?
>
>  2. To me the roles of fs_info->volume_mutex can be replaced with
>  device_list_mutex. Any idea, if I am missing something ?
>
> Thanks, Anand
>
>
> On 09/08/2016 10:34 PM, Ilya Dryomov wrote:
>> Hello,
>>
>> This one seems to have appeared after Anand's commit
>> 142388194191 ("btrfs: do not background blkdev_put()") got merged into
>> 4.8-rc4.
>>
>> Thanks,
>>
>>                 Ilya
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2016-09-09  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 14:34 Another 4.8-rc locked splat: btrfs_close_devices() Ilya Dryomov
2016-09-09  0:38 ` Anand Jain
2016-09-09  8:33   ` Anand Jain [this message]

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=cd34d188-e75a-3251-10df-70917836e721@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.cz \
    --cc=idryomov@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).