]> git.baikalelectronics.ru Git - kernel.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)
commit755c85b4f0a6574c71d0e871b131ed3424f86bc7
treeeffac5e5f245ff8e04dfe80a87d426d5074c85eb
parentcda97386ac91ed1524139ec7c601003e82f2b4a7
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: 0ab745e026a4 ("NFS/pNFS: Simplify bucket layout segment reference counting")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs_nfs.c