Revision 3e1a0699095803e53072699a4a1485af7744601d authored by Joe Thornber on 03 March 2014, 16:03:26 UTC, committed by Mike Snitzer on 05 March 2014, 20:26:58 UTC
Ideally a thin pool would never run out of data space; the low water mark would trigger userland to extend the pool before we completely run out of space. However, many small random IOs to unprovisioned space can consume data space at an alarming rate. Adjust your low water mark if you're frequently seeing "out-of-data-space" mode. Before this fix, if data space ran out the pool would be put in PM_READ_ONLY mode which also aborted the pool's current metadata transaction (data loss for any changes in the transaction). This had a side-effect of needlessly compromising data consistency. And retry of queued unserviceable bios, once the data pool was resized, could initiate changes to potentially inconsistent pool metadata. Now when the pool's data space is exhausted transition to a new pool mode (PM_OUT_OF_DATA_SPACE) that allows metadata to be changed but data may not be allocated. This allows users to remove thin volumes or discard data to recover data space. The pool is no longer put in PM_READ_ONLY mode in response to the pool running out of data space. And PM_READ_ONLY mode no longer aborts the pool's current metadata transaction. Also, set_pool_mode() will now notify userspace when the pool mode is changed. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent 07f2b6e
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 254 bytes |
host.c | -rw-r--r-- | 81.2 KB |
host.h | -rw-r--r-- | 16.7 KB |
init.c | -rw-r--r-- | 22.4 KB |
isci.h | -rw-r--r-- | 18.3 KB |
phy.c | -rw-r--r-- | 46.0 KB |
phy.h | -rw-r--r-- | 13.4 KB |
port.c | -rw-r--r-- | 52.4 KB |
port.h | -rw-r--r-- | 9.1 KB |
port_config.c | -rw-r--r-- | 25.3 KB |
probe_roms.c | -rw-r--r-- | 5.3 KB |
probe_roms.h | -rw-r--r-- | 10.5 KB |
registers.h | -rw-r--r-- | 69.4 KB |
remote_device.c | -rw-r--r-- | 52.2 KB |
remote_device.h | -rw-r--r-- | 13.8 KB |
remote_node_context.c | -rw-r--r-- | 25.1 KB |
remote_node_context.h | -rw-r--r-- | 8.7 KB |
remote_node_table.c | -rw-r--r-- | 19.6 KB |
remote_node_table.h | -rw-r--r-- | 6.3 KB |
request.c | -rw-r--r-- | 102.3 KB |
request.h | -rw-r--r-- | 11.3 KB |
sas.h | -rw-r--r-- | 6.3 KB |
scu_completion_codes.h | -rw-r--r-- | 11.5 KB |
scu_event_codes.h | -rw-r--r-- | 10.9 KB |
scu_remote_node_context.h | -rw-r--r-- | 6.6 KB |
scu_task_context.h | -rw-r--r-- | 24.3 KB |
task.c | -rw-r--r-- | 24.2 KB |
task.h | -rw-r--r-- | 5.6 KB |
unsolicited_frame_control.c | -rw-r--r-- | 7.3 KB |
unsolicited_frame_control.h | -rw-r--r-- | 8.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...