public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Levy <contact@ericlevy.name>
To: linux-btrfs@vger.kernel.org
Subject: kernel improvement to support reordering of device list
Date: Thu, 10 Nov 2022 05:08:44 -0500	[thread overview]
Message-ID: <KUM4LR.0UME6I8K4U963@ericlevy.name> (raw)

I have been using a file system spanning multiple block devices 
attached to an iSCSI target. Whenever devices are added or removed from 
the target, I must reboot the initiating host. I have not been able 
safely to refresh the device list while the host has mounted devices, 
because each time I change the device configuration and refresh the 
device list, the address of existing devices changes.

While ideally the device list may be refreshed with a guarantee of no 
changes to the address of any existing device, it is possible in 
principle that the file system, with support from the kernel, might 
handle safe maintenance of existing mounts despite changes in device 
ordering. It would require an event propagated to the file system 
notifying about a possible upcoming change to the device list. The file 
system would need to process the event by resolving existing 
transactions, and then suspending I/O operations, until notified that 
the change in the device list had completed. After such notifications, 
the file system would need to scan the new device list, and adjust the 
state of the active mount before resuming processing of queued 
operations.

In such a way, it would be possible for the mount to persist across 
changes in the addresses of the devices included in the mounted file 
system.

Of course, the removal of any device that is part of an existing mount 
must be a failure condition. Even so, the new feature would add 
resilience by isolating transactions from potentially dangerous actions.

Has any discussion arisen for support of such a feature in the kernel 
and file system?



                 reply	other threads:[~2022-11-10 10:14 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=KUM4LR.0UME6I8K4U963@ericlevy.name \
    --to=contact@ericlevy.name \
    --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