summaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-04-09 22:12:31 +0200
committerDavid Howells <dhowells@redhat.com>2018-04-09 22:12:31 +0200
commit17814aef57fc0b80ac2a4a7a639db358b75cb6b9 (patch)
tree9d9a28e5811304439cc3cc9911c124801e8b27a8 /block/blk-sysfs.c
parentafs: Fix checker warnings (diff)
downloadlinux-17814aef57fc0b80ac2a4a7a639db358b75cb6b9.tar.xz
linux-17814aef57fc0b80ac2a4a7a639db358b75cb6b9.zip
afs: Don't over-increment the cell usage count when pinning it
AFS cells that are added or set as the workstation cell through /proc are pinned against removal by setting the AFS_CELL_FL_NO_GC flag on them and taking a ref. The ref should be only taken if the flag wasn't already set. Fix this by making it conditional. Without this an assertion failure will occur during module removal indicating that the refcount is too elevated. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'block/blk-sysfs.c')
0 files changed, 0 insertions, 0 deletions