stgt.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
To: stgt@vger.kernel.org
Cc: fujita.tomonori@lab.ntt.co.jp
Subject: [PATCH] Add WRITE_ATOMIC_16 support
Date: Wed,  9 Sep 2015 11:43:54 -0700	[thread overview]
Message-ID: <1441824235-7724-1-git-send-email-ronniesahlberg@gmail.com> (raw)


Tomo, All,

Please find attached a patch that adds support for the new opcode
WRITE_ATOMIC_16 to the bs_rdwr backend.

I try to make it as atomic as possible by using mmap and mlock to ensure that
both the write buffer and the file region we are writing to will be all
present and locked down in memory before I just memcpy() the data.
At that stage it is then assumed that the memcpy() will never fail short.

The patch also adds the three new write atomic fields to the block limits
vpd page and sets some sane defaults.
Maximum amount of write atomic is set to the arbitrary limit of 16MByte
and alignment and granularity is computed based on the blocksize of the
underlying filesystem.

regards
ronnie sahlberg

             reply	other threads:[~2015-09-09 18:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 18:43 Ronnie Sahlberg [this message]
2015-09-09 18:43 ` [PATCH] Add support for WRITE_ATOMIC_16 Ronnie Sahlberg
2015-09-09 21:00   ` ronnie sahlberg
2015-09-15  9:54 ` [PATCH] Add WRITE_ATOMIC_16 support FUJITA Tomonori
2015-09-16 19:49   ` ronnie sahlberg
2015-09-23  3:16     ` FUJITA Tomonori
2015-09-10 12:58 Ronnie Sahlberg
2015-09-11  0:36 Ronnie Sahlberg

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=1441824235-7724-1-git-send-email-ronniesahlberg@gmail.com \
    --to=ronniesahlberg@gmail.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=stgt@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).