]> www.infradead.org Git - linux-platform-drivers-x86.git/commit
NFS/pNFS: Don't call pnfs_free_bucket_lseg() before removing the request
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 6 Jan 2021 16:28:30 +0000 (11:28 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 18:32:52 +0000 (13:32 -0500)
commit1757655d780d9d29bc4b60e708342e94924f7ef3
treeeffac5e5f245ff8e04dfe80a87d426d5074c85eb
parent2c8d5fc37fe2384a9bdb6965443ab9224d46f704
NFS/pNFS: Don't call pnfs_free_bucket_lseg() before removing the request

In pnfs_generic_clear_request_commit(), we try calling
pnfs_free_bucket_lseg() before we remove the request from the DS bucket.
That will always fail, since the point is to test for whether or not
that bucket is empty.

Fixes: c84bea59449a ("NFS/pNFS: Simplify bucket layout segment reference counting")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs_nfs.c