From: niko <tongfw@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] memlock_inc increased device open count problem
Date: Fri, 10 Jun 2011 11:22:59 +0800 [thread overview]
Message-ID: <BANLkTikU4hKDG8h-5tBZAdtuwC+82b5FUw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
Hi,everyone
I'm using mpatocka's patches for shared snapshot on RHEL6.
Problem occurred when creating shared cow storage volume.
the same problem occurred when creating snapshot
I got error message:
Unable to deactivate open vgtest-orig--shared (253:2)
Aborting. Couldn't deactivate snapshot COW area. Manual intervention
required.
Then,I did some digging, in lv_deactivate
@@ -1117,6 +1121,9 @@
stack;
memlock_inc(cmd);
+ if (!lv_info(cmd, lv, 0, &info, 1, 0))
+ goto_out;
+ log_verbose("lv_deactivate: open_count %d", info.open_count);
r = _lv_deactivate(lv);
memlock_dec(cmd);
fs_unlock();
it turns out :
lv_deactivate: open_count 1
before memlock_inc, open_count is 0
I wonder how it changes to 1 ?
--
niko
[-- Attachment #2: Type: text/html, Size: 1060 bytes --]
reply other threads:[~2011-06-10 3:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=BANLkTikU4hKDG8h-5tBZAdtuwC+82b5FUw@mail.gmail.com \
--to=tongfw@gmail.com \
--cc=linux-lvm@redhat.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;
as well as URLs for NNTP newsgroup(s).