summaryrefslogtreecommitdiffstats
path: root/fs/ext4/truncate.h
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2013-12-10 13:10:40 -0700
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2014-01-27 20:07:35 -0500
commit4d115420707afcabe77d2535e092356df6664b70 (patch)
tree7e8b6c1003e1d6882bc48fbed66d25b084c7e68f /fs/ext4/truncate.h
parent0e53d18051725da46cbccfb7874a6422d4d4f274 (diff)
downloadop-kernel-dev-4d115420707afcabe77d2535e092356df6664b70.zip
op-kernel-dev-4d115420707afcabe77d2535e092356df6664b70.tar.gz
NVMe: Async IO queue deletion
This attempts to delete all IO queues at the same time asynchronously on shutdown. This is necessary for a present device that is not responding; a shutdown operation previously would take 2 minutes per queue-pair to timeout before moving on to the next queue, making a device removal appear to take a very long time or "hung" as reported by users. In the previous worst case, a removal may be stuck forever until a kill signal is given if there are more than 32 queue pairs since it would run out of admin command IDs after over an hour of timed out sync commands (admin queue depth is 64). This patch will wait for the admin command timeout for all commands to complete, so the worst case now for an unresponsive controller is 60 seconds, though that still seems like a long time. Since this adds another way to take queues offline, some duplicate code resulted so I moved these into more convienient functions. Signed-off-by: Keith Busch <keith.busch@intel.com> [make functions static, correct line length and whitespace issues] Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'fs/ext4/truncate.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud