mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Garry <john.g.garry@oracle.com>
To: martin.petersen@oracle.com
Cc: target-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-scsi@vger.kernel.org, michael.christie@oracle.com,
	John Garry <john.g.garry@oracle.com>
Subject: [PATCH v3 0/7] scsi: target: Add WRITE_ATOMIC_16 support
Date: Mon, 20 Oct 2025 10:38:13 +0000	[thread overview]
Message-ID: <20251020103820.2917593-1-john.g.garry@oracle.com> (raw)

This is a reposting of Mike's atomic writes support for the SCSI target.

Again, we are now only supporting target_core_iblock. It's implemented
similar to UNMAP where we do not do any emulation and instead pass the
operation to the block layer.

Changes since v2:
- Fix 32b build error

Changes since v1:
- Don't make atomic alignment configurable
- Drop atomic_supported configfs entry
- reformatting
- fix lba size in sbc_check_atomic()
- fix return code from sbc_check_atomic()

Mike Christie (7):
  scsi: target: Rename target_configure_unmap_from_queue
  scsi: target: Add atomic se_device fields
  scsi: target: Add helper to setup atomic values from block_device
  scsi: target: Add WRITE_ATOMIC_16 handler
  scsi: target: Report atomic values in INQUIRY
  scsi: target: Add WRITE_ATOMIC_16 support to RSOC
  scsi: target: Add atomic support to target_core_iblock

 drivers/target/target_core_configfs.c | 15 ++++++++
 drivers/target/target_core_device.c   | 23 ++++++++++--
 drivers/target/target_core_file.c     |  4 +--
 drivers/target/target_core_iblock.c   |  9 +++--
 drivers/target/target_core_sbc.c      | 51 +++++++++++++++++++++++++++
 drivers/target/target_core_spc.c      | 49 +++++++++++++++++++++----
 include/target/target_core_backend.h  |  6 ++--
 include/target/target_core_base.h     |  6 ++++
 8 files changed, 148 insertions(+), 15 deletions(-)

-- 
2.43.5


             reply	other threads:[~2025-10-20 10:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20 10:38 John Garry [this message]
2025-10-20 10:38 ` [PATCH v3 1/7] scsi: target: Rename target_configure_unmap_from_queue John Garry
2025-10-20 10:38 ` [PATCH v3 2/7] scsi: target: Add atomic se_device fields John Garry
2025-10-20 10:38 ` [PATCH v3 3/7] scsi: target: Add helper to setup atomic values from block_device John Garry
2025-10-20 10:38 ` [PATCH v3 4/7] scsi: target: Add WRITE_ATOMIC_16 handler John Garry
2025-10-20 10:38 ` [PATCH v3 5/7] scsi: target: Report atomic values in INQUIRY John Garry
2025-10-20 10:38 ` [PATCH v3 6/7] scsi: target: Add WRITE_ATOMIC_16 support to RSOC John Garry
2025-10-20 10:38 ` [PATCH v3 7/7] scsi: target: Add atomic support to target_core_iblock John Garry
2025-11-03  2:43 ` [PATCH v3 0/7] scsi: target: Add WRITE_ATOMIC_16 support Martin K. Petersen
2025-11-05  4:02 ` Martin K. Petersen

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=20251020103820.2917593-1-john.g.garry@oracle.com \
    --to=john.g.garry@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=michael.christie@oracle.com \
    --cc=target-devel@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

all inboxes | Powered by JetHome®