mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 20:16:25 +00:00
scoutfs_item_create checks wrong lock mode
scoutfs_item_create() was checking that its lock had a read mode, when it should have been checking for a write mode. This worked out because callers with write mode locks are also protecting reads. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -1975,7 +1975,7 @@ int scoutfs_item_create(struct super_block *sb, struct scoutfs_key *key,
|
||||
void *val, int val_len, struct scoutfs_lock *lock)
|
||||
{
|
||||
return item_create(sb, key, val, val_len, lock, NULL,
|
||||
SCOUTFS_LOCK_READ, false);
|
||||
SCOUTFS_LOCK_WRITE, false);
|
||||
}
|
||||
|
||||
int scoutfs_item_create_force(struct super_block *sb, struct scoutfs_key *key,
|
||||
|
||||
Reference in New Issue
Block a user