Skip to content

Commit

Permalink
Revert "fs/driver/mtd: Lock irq when erasing fs to avoid fs corruption"
Browse files Browse the repository at this point in the history
This reverts commit 9eb3392.
  • Loading branch information
kdotsaikrishna committed Dec 19, 2024
1 parent 9f5d478 commit bf239ce
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions os/fs/driver/mtd/smart.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
#include <crc8.h>
#include <crc16.h>
#include <crc32.h>
#include <tinyara/irq.h>
#include <tinyara/math.h>
#include <tinyara/kmalloc.h>
#include <tinyara/fs/fs.h>
Expand Down Expand Up @@ -4823,7 +4822,6 @@ static inline int smart_freesector(FAR struct smart_struct_s *dev, unsigned long
static int smart_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
{
FAR struct smart_struct_s *dev;
irqstate_t saved_state;
int ret = OK;
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_SMARTFS)
FAR struct mtd_smart_procfs_data_s *procfs_data;
Expand Down Expand Up @@ -4927,9 +4925,7 @@ static int smart_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
#endif /* CONFIG_FS_WRITABLE */

case BIOC_BULKERASE:
saved_state = irqsave();
ret = MTD_IOCTL(dev->mtd, MTDIOC_BULKERASE, 0);
irqrestore(saved_state);
fdbg("Format Finished\n");
sleep(1);
goto ok_out;
Expand Down

0 comments on commit bf239ce

Please sign in to comment.