diff options
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 6476ec5f5a8..beddfd878a8 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -3245,6 +3245,10 @@ qr_unlink (call_frame_t *frame, xlator_t *this, loc_t *loc, int xflag, LOCK (&fdctx->lock); { + if (qr_inode->stbuf.ia_nlink == 1) { + fdctx->disabled = 1; + } + if ((fdctx->opened) || (strcmp (loc->path, fdctx->path) != 0)) { list_del (&fdctx->tmp_list); |