diff options
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 6ef78ad838e6..0fd081bd2a2f 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -582,7 +582,7 @@ cifs_relock_file(struct cifsFileInfo *cfile) | |||
582 | struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); | 582 | struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); |
583 | int rc = 0; | 583 | int rc = 0; |
584 | 584 | ||
585 | down_read(&cinode->lock_sem); | 585 | down_read_nested(&cinode->lock_sem, SINGLE_DEPTH_NESTING); |
586 | if (cinode->can_cache_brlcks) { | 586 | if (cinode->can_cache_brlcks) { |
587 | /* can cache locks - no need to relock */ | 587 | /* can cache locks - no need to relock */ |
588 | up_read(&cinode->lock_sem); | 588 | up_read(&cinode->lock_sem); |