Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Philipp Reisner <philipp.reisner@linbit.com>
To: "Jacobson" <mengxx@ict.ac.cn>
Cc: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] Re: question about drbd
Date: Thu, 2 Nov 2006 09:57:05 +0100	[thread overview]
Message-ID: <200611020957.06404.philipp.reisner@linbit.com> (raw)
In-Reply-To: <004101c6fca1$1593f4b0$04710a0a@jacobson>

Am Dienstag, 31. Oktober 2006 05:00 schrieb Jacobson:
> Dear philipp:
>     I am now studying drbd code. I can not get why, in function
> _drbd_send_page(),  the page send method can not be used in case of
> PageSlab(page) == 1? I am looking forword to your response:). Many thanks.
> one of drbd fan

If I remeber correctly, pages that are controlled by slab have only a
use count of one (Slab holds that single reference) [maybe it was zero,
because slab does not use the reference counting on pages].
When zero copy send is done, the network code simply decreases the
reference count to that page by one. 

I think it was the slab code that does not like it if someone 
modifies the reference counts of the pages with are owned by 
slab.

PS: As noted in the code, the only FS at that time, was XFS, which 
    was using such pages...

-Phil
-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :

           reply	other threads:[~2006-11-02  8:57 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <004101c6fca1$1593f4b0$04710a0a@jacobson>]

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=200611020957.06404.philipp.reisner@linbit.com \
    --to=philipp.reisner@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    --cc=mengxx@ict.ac.cn \
    /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