]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS/flexfiles: Improve merging of errors in LAYOUTRETURN
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 21 Jan 2016 19:48:49 +0000 (14:48 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 21 Jan 2016 20:49:40 +0000 (15:49 -0500)
commitb819ed4b2afcaf86a370a004d7b2252f981f0c50
tree2edc0b44a873eb4a179b5d77b134521fb7c2481c
parent13331a551ab4df87f7a027d2cab392da96aba1de
pNFS/flexfiles: Improve merging of errors in LAYOUTRETURN

When we hit 22 errors, we start to overflow the memory buffers allocated
to the LAYOUTRETURN errors. The issue is that currently, RPC call reply
ordering determines how successful we are in merging errors that refer
to contiguous READ or WRITE requests.

Fix is to use an insertion sort to help detect contiguity.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayoutdev.c