RE: BLKDISCARD and AIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dell - Internal Use - Confidential 

Thanks,

The issue is that we run a single threaded process (we maintain our own threads) and use eventfd to driver both networking and AIO, so blocking on BLKDISCARD will block all IO done by the process.

Menny



-----Original Message-----
From: Martin K. Petersen [mailto:martin.petersen@xxxxxxxxxx]
Sent: Wednesday, October 23, 2013 11:43 AM
To: Hamburger, Menny
Cc: linux-scsi@xxxxxxxxxxxxxxx
Subject: Re: BLKDISCARD and AIO 
>>>>> "Menny" == Menny Hamburger <Menny_Hamburger@xxxxxxxx> writes: 
Menny> I have a question regarding the use of BLKDISCARD ioctl in 
Menny> userland code: Is there currently a way to hook up with an 
Menny> asyncronous event that can be polled by userland when the 
Menny> operation completes?
Not at this time, no. 
However, you can fork a child process to execute the ioctl and wait for that to complete. 
--
Martin K. Petersen      Oracle Linux Engineering 
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux